aboutsummaryrefslogtreecommitdiff
path: root/network/qTox/qTox.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/qTox/qTox.SlackBuild')
-rw-r--r--network/qTox/qTox.SlackBuild32
1 files changed, 19 insertions, 13 deletions
diff --git a/network/qTox/qTox.SlackBuild b/network/qTox/qTox.SlackBuild
index c8989cc1fef22..6da297342b687 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