aboutsummaryrefslogtreecommitdiffstats
path: root/games/gweled/pkg-install
blob: 8c40e3417f50b83adccd53be4463bde482ad86b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ "$2" = "POST-INSTALL" ]; then
    mkdir -p ${PKG_PREFIX}/share/games
    SCORES="gweled.easy.scores gweled.timed.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 0664 ${PKG_PREFIX}/share/games/${i}
    fi
    done
fi