From 8ca6c1e50cb1622d8b2fac4480853eb486db32b9 Mon Sep 17 00:00:00 2001 From: Rob van Nues Date: Wed, 28 Nov 2018 23:31:44 +0000 Subject: system/luckybackup: Updated for version 0.5.0. Signed-off-by: David Spencer --- system/luckybackup/luckybackup.SlackBuild | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'system/luckybackup/luckybackup.SlackBuild') diff --git a/system/luckybackup/luckybackup.SlackBuild b/system/luckybackup/luckybackup.SlackBuild index 314debf22b..f20c8ef1df 100644 --- a/system/luckybackup/luckybackup.SlackBuild +++ b/system/luckybackup/luckybackup.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for luckybackup -# Copyright by titopoquito (titopoquito@gmail.com), rob van nues (sborg63@disroot.org) +# Copyright by titopoquito (titopoquito@gmail.com), rob van nues (sborg63s@disroot.org) # Permission to use, copy, modify, and distribute this software for # any purpose with or without fee is hereby granted, provided that # the above copyright notice and this permission notice appear in all @@ -22,18 +22,10 @@ # SUCH DAMAGE. PRGNAM=luckybackup -VERSION=${VERSION:-0.4.9} +VERSION=${VERSION:-0.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Luckybackup comes with two .desktop files that allow super-user rights by using a login dialog. -# On KDE kdesu is used and for GNOME a 'set-to-root' script is called that is specific for Debian/Ubuntu. -# The 'set-to-root' script is not present on Slackware and results in an error message, say when run from XFCE. -# Therefore, this build script omits the luckybackup-gnome-su.desktop file from the created package: -NOGNOME=true # change to false if used with GNOME 'set-to-root' -# For systems not running KDE and lacking kdesu, a gksu-version is added: -ADDGKSU=true # change to false if gksu is not used (on non-KDE systems) - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -80,7 +72,7 @@ find -L . \ # folders hardwired. Let's change them to the Slackware defaults: patch -p0 < $CWD/luckybackup.pro.patch sed -i "s/PROGVERSION/$VERSION/" ./luckybackup.pro -sed -i "s,/usr/share/doc/luckybackup/manual,/usr/doc/luckybackup-$VERSION/manual,g" src/global.h src/helpBrowser.cpp +sed -i "s,/usr/share/doc/luckybackup/,/usr/doc/luckybackup-$VERSION/,g" src/global.cpp qmake luckybackup.pro \ QMAKE_CFLAGS="$SLKCFLAGS" \ @@ -96,22 +88,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a readme/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a readme/* license/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -#remove the gnome .desktop file, it calls for a 'su-to-root' script specific for Debian/Ubuntu -if [ $NOGNOME = true ]; then - rm $PKG/usr/share/applications/luckybackup-gnome-su.desktop -fi - -#add a .desktop file to be used with gksu -if [ $ADDGKSU = true ]; then - cat $CWD/luckybackup-gksu.desktop > $PKG/usr/share/applications/luckybackup-gksu.desktop -fi - cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3