summaryrefslogtreecommitdiffstats
path: root/games/gnome-nibbles/pkg-install
blob: 842c719b52dfa65b3b3967b846a0e3e309431a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

PATH=/bin:/usr/bin:/usr/sbin

case $2 in
POST-INSTALL)
    mkdir -p ${PKG_PREFIX}/share/games
    SCORES="gnibbles.1.0.scores gnibbles.1.1.scores gnibbles.2.0.scores gnibbles.2.1.scores gnibbles.3.0.scores gnibbles.3.1.scores gnibbles.4.0.scores gnibbles.4.1.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
OpenPOWER on IntegriCloud