summaryrefslogtreecommitdiffstats
path: root/handbrake
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-10-15 22:54:30 +0000
committer Eric Hameleers <alien@slackware.com>2010-10-15 22:54:30 +0000
commit128c6100b6934fea8354947a1ff0cf8b19ddba81 (patch)
treee72546e509fd5321badece2b52565a0ada6afedd /handbrake
parent47ec8aa61cfbcb72528431c94d4be523cc4c62de (diff)
downloadasb-128c6100b6934fea8354947a1ff0cf8b19ddba81.tar.gz
asb-128c6100b6934fea8354947a1ff0cf8b19ddba81.tar.xz
Show an icon in the XFCE menu
Diffstat (limited to 'handbrake')
-rwxr-xr-xhandbrake/build/handbrake.SlackBuild23
1 files changed, 21 insertions, 2 deletions
diff --git a/handbrake/build/handbrake.SlackBuild b/handbrake/build/handbrake.SlackBuild
index 6ccfa547..39eba781 100755
--- a/handbrake/build/handbrake.SlackBuild
+++ b/handbrake/build/handbrake.SlackBuild
@@ -44,6 +44,8 @@
# 0.9.4-2: 01/jun/2010 by Eric Hameleers <alien@slackware.com>
# * Rebuild for Slackware 13.1; package can now be built without
# an internet connection.
+# XXXXX-1: XX/XXX/XXXX by Eric Hameleers <alien@slackware.com>
+# * Show an icon in the XFCE menu.
#
# Run 'sh handbrake.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -288,6 +290,11 @@ make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
make install DESTDIR=$PKG
)
+# Show an icon in the XFCE menu:
+mkdir -p $PKG/usr/share/pixmaps
+cp -a $PKG/usr/share/icons/hicolor/128x128/apps/hb-icon.png \
+ $PKG/usr/share/pixmaps/
+
# Remove this cache file, it will get in our way:
[ -f $PKG/usr/share/icons/hicolor/icon-theme.cache ] \
&& rm -f $PKG/usr/share/icons/hicolor/icon-theme.cache
@@ -297,7 +304,19 @@ make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
cat <<EOT >> $PKG/install/doinst.sh
# Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then
- chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1
+ chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2> /dev/null
+fi
+
+# Update the mime database:
+if [ -x usr/bin/update-mime-database ]; then
+ chroot . /usr/bin/update-mime-database usr/share/mime 1> /dev/null 2> /dev/null
+fi
+
+# Update hicolor theme cache:
+if [ -d usr/share/icons/hicolor ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null
+ fi
fi
EOT
@@ -306,7 +325,7 @@ EOT
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/gtk
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION/ || true
( cd build/contrib
- find . -iname "LICENS*" -o -iname "COPYING*" -exec cp --parents {} $PKG/usr/doc/$PRGNAM-$VERSION/
+ find . -iname "LICENS*" -o -iname "COPYING*" -exec cp --parents {} $PKG/usr/doc/$PRGNAM-$VERSION/ \;
)
cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION