summaryrefslogtreecommitdiffstats
path: root/audio/audenc
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audenc')
-rw-r--r--audio/audenc/README7
-rw-r--r--audio/audenc/audenc.SlackBuild16
2 files changed, 13 insertions, 10 deletions
diff --git a/audio/audenc/README b/audio/audenc/README
index 84c92e50c5..0a3885ad84 100644
--- a/audio/audenc/README
+++ b/audio/audenc/README
@@ -5,13 +5,6 @@ MediaInfo is also supported.
Optional requirements:
faac, or fdkaac and libfdk-aac (for AAC)
-lame, or twolame (for MP3)
opencore-amr (for AMR)
aften (for AC3)
-opus
dcaenc (for dts, note: this is a legal quagmire)
-
-All of these are available from SlackBuilds.org. This script still functions
-without them, but you will be limited to Vorbis, FLAC, and WAV.
-
-http://audenc.sourceforge.net/
diff --git a/audio/audenc/audenc.SlackBuild b/audio/audenc/audenc.SlackBuild
index 941b1fb78b..ab3ea7aa00 100644
--- a/audio/audenc/audenc.SlackBuild
+++ b/audio/audenc/audenc.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for audenc
# Copyright 2013-2016 klaatu @member.fsf.org
@@ -9,16 +9,26 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=audenc
VERSION=${VERSION:-3.3.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
PREFIX=${PREFIX:-/usr}
MANDIR=${MANDIR:-$PREFIX/man}
DOCDIR=${DOCDIR:-$PREFIX/doc}
ARCH=${ARCH:-noarch}
-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}
@@ -68,4 +78,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