diff options
Diffstat (limited to 'academic/perlprimer/perlprimer.SlackBuild')
-rw-r--r-- | academic/perlprimer/perlprimer.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/academic/perlprimer/perlprimer.SlackBuild b/academic/perlprimer/perlprimer.SlackBuild index 8e681db655bf4..686c973a34483 100644 --- a/academic/perlprimer/perlprimer.SlackBuild +++ b/academic/perlprimer/perlprimer.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perlprimer -# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com +# Copyright 2011-2018 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perlprimer -VERSION=${VERSION:-1.1.21} -BUILD=${BUILD:-3} +VERSION=${VERSION:-1.2.3_f7d3bd0} +COMMIT=${COMMIT:-f7d3bd0b7f509d88cb0aded4fc08042bcff7f5dd} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} ARCH=noarch @@ -39,9 +40,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$COMMIT +tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz +cd $PRGNAM-$COMMIT chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -49,14 +50,7 @@ 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 {} \; -# Thanks to Debian for the patch! -patch -p1 -i $CWD/01_sytaxerrors.patch - -# A quick fix to this issue: -# https://bugs.launchpad.net/ubuntu/+source/perlprimer/+bug/1575074 -patch -p1 -i $CWD/02_fix-defined-slist.patch - -install -D -m755 perlprimer.pl $PKG/usr/bin/perlprimer.pl +install -D -m755 $PRGNAM $PKG/usr/bin/perlprimer.pl install -D -m644 gcg.603 $PKG/usr/share/$PRGNAM/gcg.603 mkdir -p $PKG/usr/share/{applications,pixmaps} @@ -65,7 +59,7 @@ cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - Changelog ReadMe.txt todo tutorial.html tutorial_files \ + Changelog LICENSE README.md tutorial.html tutorial_files \ $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References |