summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-07-03 15:12:13 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-03 15:12:13 -0500
commit45dcf510f6f475ba91ccf2521ed2ca38108855f3 (patch)
tree1e2686016004985d78e5715c4c802c9fa0aeac6c /multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
parent854ad571a9932f0002c059fa5ae97bfc620b5cd3 (diff)
downloadslackbuilds-45dcf510f6f475ba91ccf2521ed2ca38108855f3.tar.gz
multimedia/ffmpeg2theora: Updated for version 0.27.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild')
-rw-r--r--multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild35
1 files changed, 14 insertions, 21 deletions
diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
index 5d02230a36..1fb4ecf7ba 100644
--- a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
+++ b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild
@@ -5,13 +5,13 @@
# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
-
+#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
-
+#
# 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
-
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -23,20 +23,18 @@
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
+
# Modified by SlackBuilds.org --dsomero,rworkman
PRGNAM=ffmpeg2theora
-VERSION=0.24
-BUILD=${BUILD:-2}
+VERSION=0.27
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -54,7 +52,7 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
-set -e
+set -e ### exit on most errors
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -68,23 +66,18 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-### make & install using scons
scons install APPEND_CCFLAGS="$SLKCFLAGS" prefix=/usr destdir=$PKG
-### copying essential doc files
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
-cp -a AUTHORS COPYING ChangeLog INSTALL README TODO \
-subtitles.txt $PKG/usr/doc/$PRGNAM-$VERSION
-
-### strip binaries
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL README TODO subtitles.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc