diff options
Diffstat (limited to 'multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild')
-rw-r--r-- | multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild index d562ef4ef0..f74f241404 100644 --- a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild +++ b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for ffmpeg2theora # Home Page http://v2v.cc/~j/ffmpeg2theora/ @@ -27,10 +27,13 @@ # Modified by SlackBuilds.org --dsomero,rworkman +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM="ffmpeg2theora" VERSION=${VERSION:-0.30} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,7 +43,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} @@ -71,6 +81,9 @@ find -L . \ # thanks to Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768674 patch -p1 < $CWD/link-libm.patch +# thanks arch maintainers +zcat $CWD/scons-python3.patch.gz | patch -p1 + scons install APPEND_CCFLAGS="$SLKCFLAGS" prefix=/usr destdir=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -86,4 +99,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 |