diff options
Diffstat (limited to 'network/nicotine+/nicotine+.SlackBuild')
-rw-r--r-- | network/nicotine+/nicotine+.SlackBuild | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/network/nicotine+/nicotine+.SlackBuild b/network/nicotine+/nicotine+.SlackBuild index eea88b4ed9..019efeb4fa 100644 --- a/network/nicotine+/nicotine+.SlackBuild +++ b/network/nicotine+/nicotine+.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for nicotine+ # Copyright 2006 Iskar Enev <iskar.enev@gmail.com> -# Copyright 2013 Audrius Kažukauskas <audrius@neutrino.lt> +# Copyright 2013-2017 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,13 +24,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nicotine+ -VERSION=${VERSION:-20130813_037e16c} +SRCNAM=nicotine-plus +VERSION=${VERSION:-1.4.0} 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 @@ -46,34 +47,27 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +# Fix paths. +sed -i 's|share/man|man|' setup.py +sed -i "s|share/doc/nicotine|doc/$PRGNAM-$VERSION|" \ + setup.py pynicotine/gtkgui/frame.py -mv $PKG/usr/share/man $PKG/usr +python setup.py install --root=$PKG 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 -( cd $PKG/usr/bin ; ln -sf nicotine.py nicotine ) - -# Let's use the larger icon to ensure proper scaling. -sed -i 's/Icon=nicotine-plus/Icon=nicotine-plus-96px/' \ - $PKG/usr/share/applications/nicotine.desktop -rm -f $PKG/usr/share/pixmaps/* -cp -a files/nicotine-plus-96px.png $PKG/usr/share/pixmaps - -mkdir -p $PKG/usr/doc -cp -a COPYING $PKG/usr/share/nicotine/documentation -mv $PKG/usr/share/nicotine/documentation $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS.md COPYING NEWS README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |