diff options
Diffstat (limited to 'perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild')
-rw-r--r-- | perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild b/perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild index ce1f3b8b9f..0b3cdda41b 100644 --- a/perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild +++ b/perl/perl-Text-Hyphen/perl-Text-Hyphen.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perl-Text-Hyphen # -# Copyright 2014 Tracy Williams <t_s_williams[at]yahoo[dot]com> +# Copyright 2015 Tracy Williams <t_s_williams[at]yahoo[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-Text-Hyphen -VERSION=${VERSION:-0.11} +VERSION=${VERSION:-0.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,20 +42,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -71,14 +57,15 @@ 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 {} \; -perl Makefile.PL \ - PREFIX=/usr \ - INSTALLDIRS=vendor \ - INSTALLVENDORMAN3DIR=/usr/man/man3 - -make -make test -make install DESTDIR=$PKG +perl Build.PL \ + prefix=/usr \ + installdirs=vendor \ + destdir=$PKG +./Build +./Build test +./Build install \ + --install_path bindoc=/usr/man/man1 \ + --install_path libdoc=/usr/man/man3 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 @@ -90,7 +77,7 @@ find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" -empty | xa find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Changes MANIFEST README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a Changes MANIFEST README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |