summaryrefslogtreecommitdiffstats
path: root/misc/yubioath-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'misc/yubioath-desktop')
-rw-r--r--misc/yubioath-desktop/yubioath-desktop.SlackBuild31
-rw-r--r--misc/yubioath-desktop/yubioath-desktop.info6
2 files changed, 20 insertions, 17 deletions
diff --git a/misc/yubioath-desktop/yubioath-desktop.SlackBuild b/misc/yubioath-desktop/yubioath-desktop.SlackBuild
index 2b0fd0e736..361eb27ab6 100644
--- a/misc/yubioath-desktop/yubioath-desktop.SlackBuild
+++ b/misc/yubioath-desktop/yubioath-desktop.SlackBuild
@@ -22,10 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240720 bkw: Modified by SlackBuilds.org:
+# Do not write to $CWD. Not only was there a chmod +x, but mounting
+# the file loopback without "-o ro" was updating its timestamp.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yubioath-desktop
-VERSION=${VERSION:-5.0.4}
+VERSION=${VERSION:-5.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -71,28 +72,30 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-# Make the Appimage executable
-chmod 755 $CWD/$PRGNAM-$VERSION-linux.AppImage
+mkdir -p $PRGNAM-$VERSION/mnt
+cd $PRGNAM-$VERSION
+cp $CWD/$PRGNAM-$VERSION-linux.AppImage .
+chmod +x $PRGNAM-$VERSION-linux.AppImage
# Get appimage mount offset
-MOUNT_OFFSET=`$CWD/$PRGNAM-$VERSION-linux.AppImage --appimage-offset`
+MOUNT_OFFSET=$( ./$PRGNAM-$VERSION-linux.AppImage --appimage-offset )
# Mount the appimage so we can extract the .desktop and icon files.
-mkdir $PRGNAM-$VERSION
-mount -o loop -o offset=$MOUNT_OFFSET $CWD/$PRGNAM-$VERSION-linux.AppImage $TMP/$PRGNAM-$VERSION
+mount -o ro,loop -o offset=$MOUNT_OFFSET $CWD/$PRGNAM-$VERSION-linux.AppImage $TMP/$PRGNAM-$VERSION/mnt
# Add .desktop and icon to KDE/XFCE-menus
mkdir -p $PKG/usr/share/applications/ $PKG/usr/share/pixmaps/
-cp $PRGNAM-$VERSION/com.yubico.yubioath.desktop ${PKG}/usr/share/applications/${PRGNAM}.desktop
-cp $PRGNAM-$VERSION/com.yubico.yubioath.svg ${PKG}/usr/share/pixmaps/com.yubico.yubioath.svg
+cp mnt/com.yubico.yubioath.desktop ${PKG}/usr/share/applications/${PRGNAM}.desktop
+cp mnt/com.yubico.yubioath.svg ${PKG}/usr/share/pixmaps/com.yubico.yubioath.svg
# Unmount appimage
-umount $TMP/$PRGNAM-$VERSION
-rmdir $TMP/$PRGNAM-$VERSION
+umount mnt
+cd $TMP
+rm -rf $TMP/$PRGNAM-$VERSION
# Copy appimage to package-location
mkdir -p $PKG/usr/bin/
-cp $CWD/$PRGNAM-$VERSION-linux.AppImage $PKG/usr/bin/$PRGNAM
+install -m0755 -oroot -groot $CWD/$PRGNAM-$VERSION-linux.AppImage $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/misc/yubioath-desktop/yubioath-desktop.info b/misc/yubioath-desktop/yubioath-desktop.info
index 6426460d0d..c435869b24 100644
--- a/misc/yubioath-desktop/yubioath-desktop.info
+++ b/misc/yubioath-desktop/yubioath-desktop.info
@@ -1,10 +1,10 @@
PRGNAM="yubioath-desktop"
-VERSION="5.0.4"
+VERSION="5.1.0"
HOMEPAGE="https://www.yubico.com/products/services-software/download/yubico-authenticator/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://developers.yubico.com/yubioath-desktop/Releases/yubioath-desktop-5.0.4-linux.AppImage"
-MD5SUM_x86_64="4490045c8910b8f34678a1a3b4541eaa"
+DOWNLOAD_x86_64="https://developers.yubico.com/yubioath-flutter/Releases/yubioath-desktop-5.1.0-linux.AppImage"
+MD5SUM_x86_64="ba9a3d61e6f400f94530baf0f255fee4"
REQUIRES=""
MAINTAINER="Spycrowsoft"
EMAIL="spycrowsoft [ at ] gmail [ dot ] com"