| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
export DH_VERBOSE=1 |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
override_dh_auto_clean: |
| 11 |
-rm AUTHORS ChangeLog README NEWS |
| 12 |
dh_auto_clean |
| 13 |
|
| 14 |
override_dh_autoreconf: |
| 15 |
cp AUTHORS.txt AUTHORS |
| 16 |
cp CHANGES.txt ChangeLog |
| 17 |
cp README.txt README |
| 18 |
touch NEWS |
| 19 |
-autoreconf -vfi |
| 20 |
|
| 21 |
override_dh_auto_configure: |
| 22 |
dh_auto_configure -- \ |
| 23 |
--datadir=\$${prefix}/share/games \ |
| 24 |
--enable-scorefile |
| 25 |
|
| 26 |
override_dh_auto_install: |
| 27 |
install -d debian/tmp/usr/games |
| 28 |
install -d debian/tmp/usr/share/applications |
| 29 |
install -d debian/tmp/usr/share/man/man6 |
| 30 |
install -d debian/tmp/usr/share/pixmaps |
| 31 |
install -d debian/tmp/usr/share/games/circuslinux/data |
| 32 |
|
| 33 |
cp -R data/* debian/tmp/usr/share/games/circuslinux/data/ |
| 34 |
# remove icon from data package |
| 35 |
-rm debian/tmp/usr/share/games/circuslinux/data/images/circuslinux-icon.xpm |
| 36 |
-rm debian/tmp/usr/share/games/circuslinux/data/Makefile* |
| 37 |
chmod -R a+rX,g-w,o-w debian/tmp/usr/share/games/circuslinux/data/ |
| 38 |
cp circuslinux debian/tmp/usr/games/ |
| 39 |
chown root:games debian/tmp/usr/games/circuslinux |
| 40 |
chmod g+s debian/tmp/usr/games/circuslinux |
| 41 |
chmod a+rx,g-w,o-w debian/tmp/usr/games/circuslinux |
| 42 |
|
| 43 |
override_dh_fixperms: |
| 44 |
# circuslinux is setgid games so it can store the highscores |
| 45 |
# in its directory /var/games/circuslinux |
| 46 |
dh_fixperms -X usr/games/circuslinux var/games/circuslinux |