diff options
Diffstat (limited to 'games/gnome-robots/pkg-install')
-rw-r--r-- | games/gnome-robots/pkg-install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/gnome-robots/pkg-install b/games/gnome-robots/pkg-install new file mode 100644 index 000000000..6bec28e81 --- /dev/null +++ b/games/gnome-robots/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="gnobots2.classic_robots-safe.scores gnobots2.classic_robots-super-safe.scores gnobots2.classic_robots.scores gnobots2.nightmare-safe.scores gnobots2.nightmare-super-safe.scores gnobots2.nightmare.scores gnobots2.robots2-safe.scores gnobots2.robots2-super-safe.scores gnobots2.robots2.scores gnobots2.robots2_easy-safe.scores gnobots2.robots2_easy-super-safe.scores gnobots2.robots2_easy.scores gnobots2.robots_with_safe_teleport-safe.scores gnobots2.robots_with_safe_teleport-super-safe.scores gnobots2.robots_with_safe_teleport.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 |