summaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild')
-rw-r--r--multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
index d562ef4ef0..1dc57fd0f3 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}
@@ -60,7 +70,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $TMP/$PRGNAM-$VERSION
-chown -R root.root .
+chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
@@ -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