summaryrefslogtreecommitdiffstats
path: root/gnash
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-10-01 19:58:15 +0000
committer Eric Hameleers <alien@slackware.com>2009-10-01 19:58:15 +0000
commit36e8d2084ae12bb4f452b37d140f9a17a8e4f092 (patch)
tree1c254e421e60ba83217f5cf07ea771faf36fe486 /gnash
parenta64224b1bbfc00692e73b68aecbbc2fc43f929f5 (diff)
downloadasb-36e8d2084ae12bb4f452b37d140f9a17a8e4f092.tar.gz
asb-36e8d2084ae12bb4f452b37d140f9a17a8e4f092.tar.xz
Remove the menu entries
Diffstat (limited to 'gnash')
-rwxr-xr-xgnash/build/gnash.SlackBuild43
1 files changed, 7 insertions, 36 deletions
diff --git a/gnash/build/gnash.SlackBuild b/gnash/build/gnash.SlackBuild
index 8e1d928e..2d697450 100755
--- a/gnash/build/gnash.SlackBuild
+++ b/gnash/build/gnash.SlackBuild
@@ -32,8 +32,11 @@
# Changelog:
# 20060110-1: 10/jan/2006 by Eric Hameleers <alien@slackware.com>
# * Initial build.
-# 0.8.6-1: 29/Sep/2009 by Eric Hameleers <alien@slackware.com>
+# 0.8.6-1: 29/sep/2009 by Eric Hameleers <alien@slackware.com>
# * Update, long overdue.
+# 0.8.6-2: 01/oct/2009 by Eric Hameleers <alien@slackware.com>
+# * Remove the gnash players from the menus, they won't start
+# unless you start them with a flash file as argument.
#
# Run 'sh gnash.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -46,7 +49,7 @@
PRGNAM=gnash
VERSION=${VERSION:-0.8.6}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -176,45 +179,13 @@ make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
make DESTDIR=$PKG install install-plugins \
2>&1 | tee $OUTPUT/install-${PRGNAM}.log
-# Add desktop files and move an icon into position:
-mkdir -p $PKG/usr/share/{applications,pixmaps}
+# Copy an icon into a better position:
+mkdir -p $PKG/usr/share/pixmaps
cp -a $PKG/usr/share/gnash/GnashG.png $PKG/usr/share/pixmaps/GnashG.png
-cat <<EOT > $PKG/usr/share/applications/gtk-gnash.desktop
-[Desktop Entry]
-Type=Application
-Encoding=UTF-8
-Name=Gnash SWF Viewer (Gtk)
-GenericName=SWF Viewer
-Icon=GnashG
-Exec=gtk-gnash
-Terminal=false
-Categories=AudioVideo;GTK;Video;Player;
-MimeType=application/x-shockwave-flash;application/futuresplash;
-EOT
-
-cat <<EOT > $PKG/usr/share/applications/kde4-gnash.desktop
-[Desktop Entry]
-Type=Application
-Encoding=UTF-8
-Name=Gnash SWF Viewer (Qt4)
-GenericName=SWF Viewer
-Icon=GnashG
-Exec=kde4-gnash
-Terminal=false
-OnlyShowIn=KDE
-Categories=AudioVideo;KDE;Video;Player;
-MimeType=application/x-shockwave-flash;application/futuresplash;
-EOT
-
# Add this to the doinst.sh:
! [ -d $PKG/install ] && mkdir -p $PKG/install
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
-fi
-
# Update the mime database:
if [ -x usr/bin/update-mime-database ]; then
chroot . /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1