From 0620d4d5a0999d0165b0a6f3ed09c1a997dec44f Mon Sep 17 00:00:00 2001 From: klaatu Date: Mon, 25 Jun 2012 21:16:54 -0400 Subject: multimedia/LiVES: Updated for version 1.6.1. Signed-off-by: dsomero --- multimedia/LiVES/LiVES.SlackBuild | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'multimedia/LiVES/LiVES.SlackBuild') diff --git a/multimedia/LiVES/LiVES.SlackBuild b/multimedia/LiVES/LiVES.SlackBuild index 15326cda85..aaef63a8b9 100644 --- a/multimedia/LiVES/LiVES.SlackBuild +++ b/multimedia/LiVES/LiVES.SlackBuild @@ -8,16 +8,16 @@ # at slackbuilds.org PRGNAM=LiVES -VERSION=1.3.4 +VERSION=1.6.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac fi CWD=$(pwd) @@ -41,12 +41,19 @@ fi set -e -rm -rf $PKG +rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 mv lives-$VERSION $PRGNAM-$VERSION +if [ $PULSE = "yes" ]; then + echo "Pulse patch NOT applied." + echo "If this build fails, then you probably do not have pulse audio;" + echo "Try again without the PULSE=yes flag." +else + patch -p1 $PRGNAM-$VERSION/src/callbacks.c $CWD/LiVES.patch +fi cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,g-w+r,o-w+r . @@ -69,6 +76,12 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +# Fix a broken symlink. +cd $PKG/usr/bin +rm -f lives +ln -sf lives-exe lives cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3