aboutsummaryrefslogtreecommitdiff
path: root/network/uTox/uTox.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/uTox/uTox.SlackBuild')
-rw-r--r--network/uTox/uTox.SlackBuild34
1 files changed, 27 insertions, 7 deletions
diff --git a/network/uTox/uTox.SlackBuild b/network/uTox/uTox.SlackBuild
index ae72cae1c1511..d17da38eaaa17 100644
--- a/network/uTox/uTox.SlackBuild
+++ b/network/uTox/uTox.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for uTox
#
# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com>
-# Copyright 2016 Christoph Willing Brisbane, Australia
+# Copyright 2016-2017 Christoph Willing Brisbane, Australia
# All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
@@ -19,7 +19,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
PRGNAM=uTox
-VERSION=${VERSION:-0.9.8}
+VERSION=${VERSION:-0.13.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,7 +58,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
-sed -i -e 's:DIR)/man:DIR)/../man:g' Makefile
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,11 +68,32 @@ find -L . \
# Use GTK2 as default
[ GTK3=${GTK3:-no} != "yes" ] && patch -p1 < $CWD/gtk2.diff
-make
-make install \
- DESTDIR=$PKG \
- PREFIX=/usr
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
+cd icons
+ for f in utox-*; do
+ echo $f
+ size=$(basename $(echo $f |cut -d'-' -f 2) .png); echo $size
+ mkdir -p $PKG/usr/share/icons/hicolor/$size/apps
+ cp $f $PKG/usr/share/icons/hicolor/$size/apps/utox.png
+ done
+ mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps
+ cp utox.svg $PKG/usr/share/icons/hicolor/scalable/apps
+cd ..
+
+
+mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done