aboutsummaryrefslogblamecommitdiff
path: root/games/tali/pkg-install
blob: 5776e0fbfb55694c12015608a8f0766ccf072597 (plain) (tree)
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="gtali.Colors.scores gtali.Regular.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