summaryrefslogtreecommitdiff
path: root/perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2014-05-18 22:46:20 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-18 22:46:20 +0700
commit10875bc6d1d52859b890a11a986790333854f571 (patch)
tree343db9306a998949d63ead6397ec30b05a96fe43 /perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild
parent07f220e92578511398c318d5b0ee4940c98d23c0 (diff)
downloadslackbuilds-10875bc6d1d52859b890a11a986790333854f571.tar.gz
perl/perl-CPAN-Changes: Added (Perl Module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild')
-rw-r--r--perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild b/perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild
new file mode 100644
index 0000000000..bb4483c21a
--- /dev/null
+++ b/perl/perl-CPAN-Changes/perl-CPAN-Changes.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+PRGNAM=perl-CPAN-Changes
+VERSION=${VERSION:-0.27}
+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 -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 {} \;
+
+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 Changes 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}