libraries/perl-test-number-delta: Updated for version 1.03

This commit is contained in:
Michael Wagner 2010-05-13 00:32:54 +02:00 committed by Robby Workman
parent 5fd23352b3
commit 1a51dc845f
2 changed files with 14 additions and 10 deletions

View file

@ -25,7 +25,7 @@
PRGNAM=perl-test-number-delta
SRCNAM=Test-Number-Delta
VERSION=1.03
ARCH=noarch
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -34,20 +34,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="Changes INSTALL LICENSE README Todo"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
cd $TMP
rm -rf $SRCNAM-$VERSION
tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1
cd $SRCNAM-$VERSION || exit 1
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
perl Makefile.PL || exit 1
make || exit 1
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
perl Makefile.PL
make
make install INSTALLDIRS=vendor DESTDIR=$PKG
mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share
gzip -9 $PKG/usr/man/man3/* 2> /dev/null
@ -62,7 +62,9 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null
find $PKG -depth -type d -empty -exec rm -rf {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Changes INSTALL LICENSE README Todo \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
@ -70,4 +72,4 @@ 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.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="perl-test-number-delta"
VERSION="1.03"
HOMEPAGE="http://search.cpan.org/~dagolden/Test-Number-Delta-1.03/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-1.03.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="17d3eec2d5bbe012c4a797af8e75ae39"
MD5SUM_x86_64=""
MAINTAINER="Michael Wagner"
EMAIL="lapinours@web.de"
APPROVED="rworkman"