diff options
author | Mario Preksavec <mario@slackware.hr> | 2017-05-12 13:36:06 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-13 07:00:07 +0700 |
commit | 8bd330378f792dd4fe25a7ddaf58a8384badb826 (patch) | |
tree | 888b47c14398676e56aec085a2d2b582b1b12f05 /network/qTox/qTox.SlackBuild | |
parent | 6a352036b4a210917ac1dff6133e6080e9c05f1a (diff) |
network/qTox: Updated for version 1.10.0.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'network/qTox/qTox.SlackBuild')
-rw-r--r-- | network/qTox/qTox.SlackBuild | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/network/qTox/qTox.SlackBuild b/network/qTox/qTox.SlackBuild index c8989cc1fef2..6da297342b68 100644 --- a/network/qTox/qTox.SlackBuild +++ b/network/qTox/qTox.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qTox -VERSION=${VERSION:-1.7.1} +VERSION=${VERSION:-1.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,22 +69,28 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -qmake-qt5 \ - ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO \ - ENABLE_SYSTRAY_UNITY_BACKEND=NO \ - ENABLE_SYSTRAY_GTK_BACKEND=YES +# gcc-7 fix +patch -p1 <$CWD/rawdatabase.h.diff -make +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_STATUSNOTIFIER=False \ + -DENABLE_APPINDICATOR=False \ + -DENABLE_GTK_SYSTRAY=True \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. -# Copy only the fun stuff ;-) -install -D -m0755 -oroot -groot -s qtox $PKG/usr/bin/qtox -install -D -m0644 -oroot -groot $PRGNAM.desktop \ - $PKG/usr/share/applications/$PRGNAM.desktop -install -D -m0644 -oroot -groot img/icons/64x64/qtox.png \ - $PKG/usr/share/icons/hicolor/64x64/apps/qtox.png +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md CONTRIBUTING.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |