diff options
author | Chris Farrell <timcowchip@gmail.com> | 2016-08-26 21:29:47 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-08-28 00:22:59 +0100 |
commit | 8c0def9528ccd244f4145b921af3b3c7088af961 (patch) | |
tree | 18fcc2d06ba66320f19b738d44cee19d4c939765 /network/trojita/trojita.SlackBuild | |
parent | 54a9409f82c2b0d2ec2df69cb3166f71746aff65 (diff) |
network/trojita: Updated for version 0.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/trojita/trojita.SlackBuild')
-rw-r--r-- | network/trojita/trojita.SlackBuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/network/trojita/trojita.SlackBuild b/network/trojita/trojita.SlackBuild index 28e73bf560ec7..0b9f72d426382 100644 --- a/network/trojita/trojita.SlackBuild +++ b/network/trojita/trojita.SlackBuild @@ -4,13 +4,13 @@ # Written by Chris Farrell <timcowchip@gmail.com> PRGNAM=trojita -VERSION=${VERSION:-0.4.1} +VERSION=${VERSION:-0.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -21,8 +21,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -43,18 +43,20 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DQT_QMAKE_EXECUTABLE=qmake-qt5 \ + -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ . |