diff options
Diffstat (limited to 'perl/perl-data-messagepack/perl-data-messagepack.SlackBuild')
-rw-r--r-- | perl/perl-data-messagepack/perl-data-messagepack.SlackBuild | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/perl/perl-data-messagepack/perl-data-messagepack.SlackBuild b/perl/perl-data-messagepack/perl-data-messagepack.SlackBuild index 590ae0bfb2..e008d32ad2 100644 --- a/perl/perl-data-messagepack/perl-data-messagepack.SlackBuild +++ b/perl/perl-data-messagepack/perl-data-messagepack.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-data-messagepack @@ -22,23 +22,33 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-data-messagepack -VERSION=${VERSION:-1.00} +VERSION=${VERSION:-1.02} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=Data-MessagePack -DOCFILES="Changes README" +DOCFILES="Changes README.md" if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -58,13 +68,10 @@ 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 {} \; -echo "y" | perl Makefile.PL \ - PREFIX=/usr \ - INSTALLDIRS=vendor \ - INSTALLVENDORMAN3DIR=/usr/man/man3 -make -make test -make install DESTDIR=$PKG +perl Build.PL --installdirs vendor --config installvendorman1dir=/usr/man/man1 --config installvendorman3dir=/usr/man/man3 +./Build +./Build test +./Build install --destdir $PKG find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true find $PKG -depth -type d -empty -delete @@ -83,4 +90,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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |