aboutsummaryrefslogtreecommitdiff
path: root/games/five-or-more/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'games/five-or-more/pkg-install')
-rw-r--r--games/five-or-more/pkg-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/five-or-more/pkg-install b/games/five-or-more/pkg-install
new file mode 100644
index 000000000000..5d6eb0a5b090
--- /dev/null
+++ b/games/five-or-more/pkg-install
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin:/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ mkdir -p ${PKG_PREFIX}/share/games
+ SCORES="glines.Large.scores glines.Medium.scores glines.Small.scores"
+ for i in ${SCORES}; do
+ if [ ! -f ${PKG_PREFIX}/share/games/${i} ]; then
+ touch -f ${PKG_PREFIX}/share/games/${i}
+ chown games:games ${PKG_PREFIX}/share/games/${i}
+ chmod 0666 ${PKG_PREFIX}/share/games/${i}
+ fi
+ done
+ ;;
+esac