aboutsummaryrefslogtreecommitdiff
path: root/multimedia/avidemux/avidemux.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-02-14 12:23:07 +0100
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:27 -0500
commit8123c49e38cb0d24a3540e2d23bf9745393fe0cc (patch)
tree829a2f4ca869f82166a92d5d8b795e0e6038954a /multimedia/avidemux/avidemux.SlackBuild
parentda33fa169abb87fdf2a870881bfa9c48ee4eb5b0 (diff)
multimeda/avidemux: Updated for version 2.5.6
Also added some fixes followin alienBOB's hints. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/avidemux/avidemux.SlackBuild')
-rw-r--r--multimedia/avidemux/avidemux.SlackBuild32
1 files changed, 18 insertions, 14 deletions
diff --git a/multimedia/avidemux/avidemux.SlackBuild b/multimedia/avidemux/avidemux.SlackBuild
index 7b1f78efaa53f..85614c0952cdf 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=${VERSION:-2.5.2}
+VERSION=${VERSION:-2.5.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,9 +71,6 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-#Patch that installs i18n in the correct place even if we compile with qt4 support
-cat $CWD/avidemux-2.5.1-i18n.patch | patch -p1 --verbose --backup --suffix=.orig
-
if [ "$ARCH" = "x86_64" ]; then
# Some paths are incorrectly hardcoded to "lib":
sed -i -e "s/Dir=\"lib\"/Dir=\"lib${LIBDIRSUFFIX}\"/" $(grep -lr 'Dir="lib"' .)
@@ -148,13 +145,23 @@ cat man/avidemux.1 | gzip -9c > $PKG/usr/man/man1/avidemux.1.gz
cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cat avidemux2-gtk.desktop > $PKG/usr/share/applications/avidemux2-gtk.desktop
-cat avidemux2-gtk.desktop > $PKG/usr/share/applications/avidemux2-qt.desktop
-cat avidemux_icon.png > $PKG/usr/share/pixmaps/avidemux.png
-#patch avidemux2_qt.desktop to exec avidemux2_qt4 instead of avidemux2_gtk
-sed -i 's/avidemux2_gtk/avidemux2_qt4/' $PKG/usr/share/applications/avidemux2-qt.desktop
-sed -i 's/GTK+/Qt/g' $PKG/usr/share/applications/avidemux2-qt.desktop
-sed -i 's/GTK/Qt/' $PKG/usr/share/applications/avidemux2-qt.desktop
+mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
+# If the qt4 binary was built, we prefer to use that over the gtk version:
+if [ -x $PKG/usr/bin/avidemux2_qt4 ]; then
+ cat avidemux2.desktop | sed -e 's/_gtk/_qt4/' \
+ > $PKG/usr/share/applications/avidemux2.desktop
+else
+ install -m644 avidemux2.desktop $PKG/usr/share/applications/avidemux2.desktop
+fi
+install -m644 avidemux_icon.png $PKG/usr/share/pixmaps/avidemux.png
+install -m644 avidemux_icon.png \
+ ${PKG}/usr/share/icons/hicolor/64x64/apps/avidemux.png
+convert avidemux_icon.png -resize 16x16 \
+ ${PKG}/usr/share/icons/hicolor/16x16/apps/avidemux.png
+convert avidemux_icon.png -resize 32x32 \
+ ${PKG}/usr/share/icons/hicolor/32x32/apps/avidemux.png
+convert avidemux_icon.png -resize 48x48 \
+ ${PKG}/usr/share/icons/hicolor/48x48/apps/avidemux.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README TODO \
@@ -168,6 +175,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-if [ "$1" = "--cleanup" ]; then
- rm -rf $PKG $TMP/$PRGNAM-$VERSION
- fi