desktop/q4wine: Fixed (Handle icon files)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-29 07:30:28 -04:00 committed by Robby Workman
parent 8cdac3e30e
commit 4668c84c32
2 changed files with 10 additions and 5 deletions

View File

@ -2,3 +2,10 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View File

@ -2,7 +2,7 @@
# Slackware build script for qt4wine
# Copyright 2009-2010 David Somero <dsomero@hotmail.com> Athens,TN USA
# Copyright 2009-2012 David Somero <dsomero@hotmail.com> Athens,TN USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,15 +24,13 @@
PRGNAM=q4wine
VERSION=${VERSION:-0.999_rc8}
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
@ -90,7 +88,7 @@ mkdir build
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Move man pages in in the correct place and compress them
# Move man pages in to the correct place and compress them.
mv $PKG/usr/share/man $PKG/usr/man
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