diff options
Diffstat (limited to 'audio/lv2file/lv2file.SlackBuild')
-rw-r--r-- | audio/lv2file/lv2file.SlackBuild | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/audio/lv2file/lv2file.SlackBuild b/audio/lv2file/lv2file.SlackBuild index f4acd80234..73ea081331 100644 --- a/audio/lv2file/lv2file.SlackBuild +++ b/audio/lv2file/lv2file.SlackBuild @@ -1,21 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lv2file -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20220615 bkw: update for v0.95. + # 20170301 bkw: # - use long-format github URL (thanks, David!) # 20141021 bkw: # update for 0.84, get rid of argtable patch as it's no longer needed. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lv2file -VERSION=${VERSION:-0.84} +VERSION=${VERSION:-0.95} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -25,7 +30,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -46,10 +55,6 @@ fi set -e -# The man page is in the debian archive, which might be an older -# version than the release. For 0.84, the 0.83 man page is still valid. -MANVER=0.83 - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -72,11 +77,8 @@ make strip $PRGNAM make install DESTDIR=$PKG -# Use the debian man page (which is actually by the lv2file author, -# I dunno why it's not in the lv2file source distrib to begin with) -tar xvf $CWD/${PRGNAM}_$MANVER-1.debian.tar.gz debian/$PRGNAM.1 mkdir -p $PKG/usr/man/man1 -gzip -9c < debian/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +gzip -9c < $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION @@ -86,4 +88,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 |