diff options
Diffstat (limited to 'misc/igal2/igal2.SlackBuild')
-rw-r--r-- | misc/igal2/igal2.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/misc/igal2/igal2.SlackBuild b/misc/igal2/igal2.SlackBuild index 2bf21519b0486..64ff34ba7f6de 100644 --- a/misc/igal2/igal2.SlackBuild +++ b/misc/igal2/igal2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for igal2 -# Copyright 2012-2016 Petar Petrov slackalaxy@gmail.com +# Copyright 2012-2020 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=igal2 -VERSION=${VERSION:-2.2} +VERSION=${VERSION:-2.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCNAM=igal + ARCH=noarch CWD=$(pwd) @@ -39,8 +41,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -50,20 +52,23 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # We'll put these in the doc directory later +sed -i "s:/usr/local:/usr:g" Makefile +sed -i "s:(DATADIR)/man/man1:(PREFIX)/man/man1:g" Makefile +sed -i "s:(PREFIX)/lib/igal:(PREFIX)/share/$PRGNAM:" Makefile sed -i "s:README::" Makefile sed -i "s:ChangeLog::" Makefile sed -i "s:COPYING::" Makefile -# Arch-independent files should go in /usr/share -sed -i "s:/usr/local/lib:/usr/share:g" igal2 - # Path fix +sed -i "s:/usr/local:/usr:g" igal2 sed -i "s:/usr/local:/usr:g" utilities/* -make install DESTDIR=$PKG \ - BINDIR=$PKG/usr/bin \ - MANDIR=$PKG/usr/man/man1 \ - LIBDIR=$PKG/usr/share/$PRGNAM +make install DESTDIR=$PKG + +cp -a utilities $PKG/usr/share/$PRGNAM + +# This is in /usr/share/igal2/utilities +rm $PKG/usr/bin/$PRGNAM.sh 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 |