summaryrefslogtreecommitdiff
path: root/multimedia/LiVES/LiVES.SlackBuild
diff options
context:
space:
mode:
authorklaatu <klaatu@hackerpublicradio.org>2012-06-25 21:16:54 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-25 21:16:54 -0400
commit0620d4d5a0999d0165b0a6f3ed09c1a997dec44f (patch)
tree1a0af3d9af29df115019a6593b268209d8f24892 /multimedia/LiVES/LiVES.SlackBuild
parentf89d4c8180611db13ecfc605ca05c5ef049c49fc (diff)
downloadslackbuilds-0620d4d5a0999d0165b0a6f3ed09c1a997dec44f.tar.gz
multimedia/LiVES: Updated for version 1.6.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/LiVES/LiVES.SlackBuild')
-rw-r--r--multimedia/LiVES/LiVES.SlackBuild27
1 files changed, 20 insertions, 7 deletions
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}