diff options
author | Christoph Willing <chris.willing@iinet.net.au> | 2016-08-18 08:06:40 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-20 07:51:25 +0700 |
commit | ee31cb7cc1c27dbca84ebef88a4d42ef59ebd55b (patch) | |
tree | 7ce35fd4cb9fd3b9d8f5752bb77d4bf1fd69b005 /network/uTox/uTox.SlackBuild | |
parent | 203ccc4ae68c0f2e7f908495e059db976b165420 (diff) |
network/uTox: Updated for version 0.9.8 + new maintainer
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'network/uTox/uTox.SlackBuild')
-rw-r--r-- | network/uTox/uTox.SlackBuild | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/network/uTox/uTox.SlackBuild b/network/uTox/uTox.SlackBuild index 967b6407e8e7..79fbdb7faaad 100644 --- a/network/uTox/uTox.SlackBuild +++ b/network/uTox/uTox.SlackBuild @@ -3,11 +3,9 @@ # Slackware build script for uTox # # Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# Copyright 2016 Christoph Willing Brisbane, Australia # All rights reserved. # -# Tiny bit of shell from: -# Wine SlackBuild by David Woodfall Copyright 2011 -# # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. @@ -21,13 +19,13 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. PRGNAM=uTox -VERSION=${VERSION:-0.5.0} +VERSION=${VERSION:-0.9.8} 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 @@ -38,8 +36,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" @@ -60,6 +58,7 @@ 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 \ @@ -67,26 +66,19 @@ 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 {} \; -# Fixes man install directory -patch -p1 < $CWD/locationfix.diff - -# Build with GTK2 by default -GTK3=${GTK3:-NO} - -if [ "$GTK3" = "NO" ]; then - patch -p1 < $CWD/gtk2.diff -fi +# Use GTK2 as default +[ GTK3=${GTK3:-no} != "yes" ] && patch -p1 < $CWD/gtk2.diff make -make DESTDIR=$PKG \ - PREFIX=/usr \ - install +make install \ + DESTDIR=$PKG \ + PREFIX=/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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md utox_theme.ini $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md src/utox_theme.ini $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |