summaryrefslogtreecommitdiff
path: root/network/uTox/uTox.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2017-03-31 13:51:29 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-01 06:56:45 +0700
commit16a561e0adf3136202c88ef0a09333fa53cacae0 (patch)
treece7d7e5b21fbe1d6a1c29c36f91ade5b4302d28b /network/uTox/uTox.SlackBuild
parent8b1b5e81718ee184cf1165121ed3ec5baa25c4fe (diff)
downloadslackbuilds-16a561e0adf3136202c88ef0a09333fa53cacae0.tar.gz
network/uTox: Updated for version 0.13.1
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
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 ae72cae1c1..d17da38eaa 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