1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_build:
# Builds QuakeC and the huge data.zip archive.
# data/Makefile will update the cvar checksums in a bunch of in-tree
# files, so we have to back them up BEFORE calling data/Makefile. We
# have to restore them before all quilt patches get pop'ed, otherwise
# quilt would fail.
mkdir -p debian/backup
cp data/Makefile \
data/balance.cfg \
data/balance25.cfg \
data/balanceHavoc.cfg \
data/balanceSamual.cfg \
data/defaultNexuiz.cfg \
data/qcsrc/server/constants.qh debian/backup
make -C data pk3here
mkdir -p tmp/sound
cp -r data/sound/cdtracks tmp/sound
cd tmp && 7za a -tzip -mx=0 music.pk3 sound
# Same thing for the textures
cd data && 7za a -tzip -mx=9 textures.pk3 textures
override_dh_auto_clean:
#$(MAKE) -C data clean
rm -f build-stamp configure-stamp
rm -rf debian/tmp tmp
rm -f data/data.pk3 \
data/textures.pk3
rm -f data/qcsrc/menu/fteqcc.log data/qcsrc/server/fteqcc.log \
data/qcsrc/client/fteqcc.log
# Restore modified in-tree files (see above)
[ ! -e debian/backup ] || \
mv debian/backup/Makefile \
debian/backup/balance.cfg \
debian/backup/balance25.cfg \
debian/backup/balanceHavoc.cfg \
debian/backup/balanceSamual.cfg \
debian/backup/defaultNexuiz.cfg data/
[ ! -e debian/backup ] || \
mv debian/backup/constants.qh data/qcsrc/server/
rm -rf debian/backup
|