diff options
author | LEVAI Daniel <leva@ecentrum.hu> | 2013-11-05 19:56:22 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-06 01:00:01 -0600 |
commit | a02c15bfa3cd2dc0db446a4b264d9b384552fcb9 (patch) | |
tree | 2b2775871472e7ba1449ef21aa1383761b54e836 /perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild | |
parent | 4b161871dfb9af89118702f88a2f26259008b060 (diff) |
perl/perl-Module-Implementation: Added (perl module)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild')
-rw-r--r-- | perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild b/perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild new file mode 100644 index 0000000000000..4f009a29a48f0 --- /dev/null +++ b/perl/perl-Module-Implementation/perl-Module-Implementation.SlackBuild @@ -0,0 +1,64 @@ +#!/bin/sh + +PRGNAM=perl-Module-Implementation +VERSION=${VERSION:-0.07} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN1DIR=/usr/man/man1 \ + INSTALLVENDORMAN3DIR=/usr/man/man3 +make +make test +make install DESTDIR=$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 + +find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + +find $PKG -depth -type d -empty -delete || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |