summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 17:51:03 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:45 -0500
commit542632d886c1cf3cda484769782c9fa846ac661f (patch)
tree9c7dd12c0efd9a1494c22f660235f7c005feb074
parent0d7e44aeed8109c3483fb5f5abf5753488bf48f3 (diff)
downloadslackbuilds-542632d886c1cf3cda484769782c9fa846ac661f.tar.gz
games/monkey-bubble: Fixed (Handle schemas and desktop files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--games/monkey-bubble/doinst.sh19
-rw-r--r--games/monkey-bubble/monkey-bubble.SlackBuild23
2 files changed, 21 insertions, 21 deletions
diff --git a/games/monkey-bubble/doinst.sh b/games/monkey-bubble/doinst.sh
new file mode 100644
index 0000000000..c540efad9e
--- /dev/null
+++ b/games/monkey-bubble/doinst.sh
@@ -0,0 +1,19 @@
+schema_install() {
+ SCHEMA="$1"
+ GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
+ chroot . gconftool-2 --makefile-install-rule \
+ /etc/gconf/schemas/$SCHEMA \
+ 1>/dev/null
+}
+
+schema_install monkey-bubble.schemas
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q 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
diff --git a/games/monkey-bubble/monkey-bubble.SlackBuild b/games/monkey-bubble/monkey-bubble.SlackBuild
index a53892892b..cdc03919d7 100644
--- a/games/monkey-bubble/monkey-bubble.SlackBuild
+++ b/games/monkey-bubble/monkey-bubble.SlackBuild
@@ -4,15 +4,13 @@
PRGNAM=monkey-bubble
VERSION=${VERSION:-0.4.0}
-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
@@ -87,24 +85,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 >> $PKG/install/doinst.sh << "EOF"
-mkdir -p etc/gconf/gconf.xml.defaults
-GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults"
-export GCONF_CONFIG_SOURCE
-EOF
-
-for SCHEMA in $(find $PKG/etc/gconf/schemas -name "*.schemas") ; do
- ISCHEMA=$(echo $SCHEMA | cut -d"/" -f5-)
- echo "gconftool-2 --makefile-install-rule $ISCHEMA" >> $PKG/install/doinst.sh
-done
-
-for ENTRY in $(find $PKG/etc/gconf/schemas -name "*.entries") ; do
- IENTRY=$(echo $ENTRY | cut -d"/" -f5-)
- echo "gconftool-2 --direct --config-source=\$GCONF_CONFIG_SOURCE --load $IENTRY" >> $PKG/install/doinst.sh
-done
-
-echo "unset GCONF_CONFIG_SOURCE" >> $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}