diff options
Diffstat (limited to 'system/luckybackup')
-rw-r--r-- | system/luckybackup/README | 7 | ||||
-rw-r--r-- | system/luckybackup/luckybackup.SlackBuild | 18 |
2 files changed, 18 insertions, 7 deletions
diff --git a/system/luckybackup/README b/system/luckybackup/README index abf04ce152..90e39a2a18 100644 --- a/system/luckybackup/README +++ b/system/luckybackup/README @@ -1,3 +1,4 @@ -luckybackup is a powerful, fast and reliable backup & sync tool that relies -on rsync. It is written and maintained by Loukas Avgeriou. The program has -a graphical frontend as well as a commandline frontend. +luckybackup is a powerful, fast and reliable backup & sync tool that +relies on rsync. It is written and maintained by Loukas Avgeriou. +The program has a graphical frontend as well as a commandline +frontend. diff --git a/system/luckybackup/luckybackup.SlackBuild b/system/luckybackup/luckybackup.SlackBuild index f20c8ef1df..426db86cd4 100644 --- a/system/luckybackup/luckybackup.SlackBuild +++ b/system/luckybackup/luckybackup.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for luckybackup @@ -21,10 +21,13 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=luckybackup VERSION=${VERSION:-0.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -34,7 +37,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -74,7 +84,7 @@ patch -p0 < $CWD/luckybackup.pro.patch sed -i "s/PROGVERSION/$VERSION/" ./luckybackup.pro sed -i "s,/usr/share/doc/luckybackup/,/usr/doc/luckybackup-$VERSION/,g" src/global.cpp -qmake luckybackup.pro \ +qmake-qt5 luckybackup.pro \ QMAKE_CFLAGS="$SLKCFLAGS" \ QMAKE_CXXFLAGS="$SLKCFLAGS" @@ -96,4 +106,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |