updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / 2h4u / 2h4u.install
blob61decf48423de20db3d72299fe7b21430c32e0e7
1 pkgname=2h4u
3 post_install() {
4 if [ -e /usr/share/2h4u/data/HighScores.dat ]; then
5 if [ -e /usr/share/2h4u/data/config.dat ]; then
6 echo "Highscores and config files will be keeped"
7 else
8   touch /usr/share/2h4u/data/config.dat
9   touch /usr/share/2h4u/data/HighScores.dat
10   chmod 777 /usr/share/2h4u/data/{config.dat,HighScores.dat}
12 else
13   touch /usr/share/2h4u/data/config.dat
14   touch /usr/share/2h4u/data/HighScores.dat
15   chmod 777 /usr/share/2h4u/data/{config.dat,HighScores.dat}
19 post_upgrade() {
20   post_install $1
24 post_remove() {
25   cp /usr/share/share/2h4u/data/config.dat /usr/share/share/2h4u/data/config.dat.back
26   cp /usr/share/share/2h4u/data/HighScores.dat /usr/share/share/2h4u/data/HighScores.dat.back