summaryrefslogtreecommitdiff
path: root/multimedia/avidemux/avidemux.SlackBuild
diff options
context:
space:
mode:
authorNiklas Nille Åkerström <Nille.kungen[AT]gmail.com>2010-05-12 17:42:31 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:42:31 +0200
commitbc39c12c7f620aba83473cdc926d42af8f6aee2a (patch)
treea8e39d4c2dc0ecb9e2c67df6e90fe2958a71d99a /multimedia/avidemux/avidemux.SlackBuild
parentd356aec96971eaa82e92f259717fab623fa35dd3 (diff)
downloadslackbuilds-bc39c12c7f620aba83473cdc926d42af8f6aee2a.tar.gz
multimedia/avidemux: Updated for version 2.4.4
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r--multimedia/avidemux/avidemux.SlackBuild23
1 files changed, 11 insertions, 12 deletions
diff --git a/multimedia/avidemux/avidemux.SlackBuild b/multimedia/avidemux/avidemux.SlackBuild
index e05eda86a9..274a03f802 100644
--- a/multimedia/avidemux/avidemux.SlackBuild
+++ b/multimedia/avidemux/avidemux.SlackBuild
@@ -26,7 +26,7 @@
# project will use in the future. No additional license terms added
PRGNAM=avidemux
-VERSION=2.4.3
+VERSION=${VERSION:-2.4.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,6 +35,7 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+QT4=${QT4:-no}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -56,13 +57,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-# Patch to build with newer libdca (tested with 0.0.5)
-# If you're trying to use an older version of libdca, it's not supported here
-zcat $CWD/libdca.patch.gz | patch -p1 --verbose --backup --suffix=.orig
#Patch that installs i18n in the correct place evan if we compile with qt4 support
zcat $CWD/avidemux-2.4.3-i18n.patch.gz | patch -p1 --verbose --backup --suffix=.orig
-#Patch to compile against newer x264 thanks to gentoo and Heinz Wiesinger
-zcat $CWD/avidemux-2.4.3-x264.patch.gz | patch -p1 --verbose --backup --suffix=.orig
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -105,12 +101,7 @@ cmake . \
# qt4 || -DNO_QT4:BOOL=
make
-make DESTDIR=$PKG install
-
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null | true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+make DESTDIR=$PKG install/strip
mkdir -p $PKG/usr/man/man1
cat man/avidemux.1 | gzip -9c > $PKG/usr/man/man1/avidemux.1.gz
@@ -119,6 +110,10 @@ cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/{applications,pixmaps}
cat avidemux2.desktop > $PKG/usr/share/applications/avidemux2.desktop
cat avidemux_icon.png > $PKG/usr/share/pixmaps/avidemux.png
+#patch avidemux2.desktop to exec avidemux2_qt4 instead of avidemux2_gtk
+if [ $QT4 != no ];then
+ sed -i 's/avidemux2_gtk/avidemux2_qt4/' $PKG/usr/share/applications/avidemux2.desktop
+fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING History INSTALL README TODO \
@@ -131,3 +126,7 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $PKG $TMP/$PRGNAM-$VERSION
+ fi \ No newline at end of file