summaryrefslogtreecommitdiff
path: root/games/gweled/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'games/gweled/pkg-install')
-rw-r--r--games/gweled/pkg-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/gweled/pkg-install b/games/gweled/pkg-install
new file mode 100644
index 000000000000..2519bdec7245
--- /dev/null
+++ b/games/gweled/pkg-install
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+if [ "$2" = "POST-INSTALL" ]; then
+ mkdir -p ${PKG_PREFIX}/share/gnome/games
+ SCORES="gweled.easy.scores"
+ for i in ${SCORES}; do
+ if [ ! -f ${PKG_PREFIX}/share/gnome/games/${i} ]; then
+ touch -f ${PKG_PREFIX}/share/gnome/games/${i}
+ chown games:games ${PKG_PREFIX}/share/gnome/games/${i}
+ chmod 664 ${PKG_PREFIX}/share/gnome/games/${i}
+ fi
+ done
+fi