diff options
Diffstat (limited to 'perl/perl-Audio-FLAC-Header')
-rw-r--r-- | perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.SlackBuild | 21 | ||||
-rw-r--r-- | perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.info | 2 |
2 files changed, 17 insertions, 6 deletions
diff --git a/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.SlackBuild b/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.SlackBuild index 4402115353..76d99dddf8 100644 --- a/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.SlackBuild +++ b/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.SlackBuild @@ -1,14 +1,18 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-Audio-FLAC-Header # Written by Mark Grocock <mark@grocock.me.uk> -SRCNAM=Audio-FLAC-Header -PRGNAM=perl-$SRCNAM +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=perl-Audio-FLAC-Header VERSION=${VERSION:-2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=Audio-FLAC-Header if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -18,7 +22,14 @@ if [ -z "$ARCH" ]; then 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} @@ -80,4 +91,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 diff --git a/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.info b/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.info index df7011e455..93a72c6a06 100644 --- a/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.info +++ b/perl/perl-Audio-FLAC-Header/perl-Audio-FLAC-Header.info @@ -5,6 +5,6 @@ DOWNLOAD="https://cpan.metacpan.org/authors/id/D/DA/DANIEL/Audio-FLAC-Header-2.4 MD5SUM="743292694c050be1b10fb4a307f81e87" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="perl-Module-Install" MAINTAINER="Mark Grocock" EMAIL="mark@grocock.me.uk" |