diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2012-09-27 19:36:20 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-29 17:17:35 -0500 |
commit | adf2c7c2ca1a19170226807d3d65c02b1380fa0b (patch) | |
tree | 56aa2dd592b83928b5cae49c9b55d14e3eefa541 | |
parent | 856a223d7c55cbffa794f26bc41fcedfcb5e58eb (diff) | |
download | slackbuilds-adf2c7c2ca1a19170226807d3d65c02b1380fa0b.tar.gz |
academic/gtkwave: Fixed (Handle mime info and desktop files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | academic/gtkwave/doinst.sh | 7 | ||||
-rw-r--r-- | academic/gtkwave/gtkwave.SlackBuild | 27 |
2 files changed, 26 insertions, 8 deletions
diff --git a/academic/gtkwave/doinst.sh b/academic/gtkwave/doinst.sh new file mode 100644 index 0000000000..9a8ded3c60 --- /dev/null +++ b/academic/gtkwave/doinst.sh @@ -0,0 +1,7 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi diff --git a/academic/gtkwave/gtkwave.SlackBuild b/academic/gtkwave/gtkwave.SlackBuild index 54e0872007..fca2e86acb 100644 --- a/academic/gtkwave/gtkwave.SlackBuild +++ b/academic/gtkwave/gtkwave.SlackBuild @@ -5,15 +5,13 @@ PRGNAM=gtkwave VERSION=${VERSION:-3.3.40} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -66,13 +64,25 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +# Don't clobber Slackware's mime info. +rm -f $PKG/usr/share/mime/XMLnamespaces +rm -f $PKG/usr/share/mime/version +rm -f $PKG/usr/share/mime/aliases +rm -f $PKG/usr/share/mime/generic-icons +rm -f $PKG/usr/share/mime/globs +rm -f $PKG/usr/share/mime/globs2 +rm -f $PKG/usr/share/mime/icons +rm -f $PKG/usr/share/mime/magic +rm -f $PKG/usr/share/mime/mime.cache +rm -f $PKG/usr/share/mime/subclasses +rm -f $PKG/usr/share/mime/treemagic +rm -f $PKG/usr/share/mime/types + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.TXT $PKG/usr/doc/$PRGNAM-$VERSION @@ -80,6 +90,7 @@ 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 cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |