File: rules

package info (click to toggle)
nexuiz 2.5.2%2Bdp-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 420 kB
  • ctags: 5
  • sloc: sh: 48; makefile: 26
file content (32 lines) | stat: -rwxr-xr-x 932 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_build:
	:

override_dh_auto_clean:
	rm -rf debian/tmp

override_dh_auto_install:
	rm -rf debian/tmp
	mkdir -p debian/tmp/256
	mkdir -p debian/tmp/48
	mkdir -p debian/tmp/32
	mkdir -p debian/tmp/24
	mkdir -p debian/tmp/16
	icotool --extract --width=256 -o debian/tmp/256/nexuiz.png nexuiz.ico
	icotool --extract --width=48 -o debian/tmp/48/nexuiz.png nexuiz.ico
	icotool --extract --width=32 -o debian/tmp/32/nexuiz.png nexuiz.ico
	icotool --extract --width=24 -o debian/tmp/24/nexuiz.png nexuiz.ico
	icotool --extract --width=16 -o debian/tmp/16/nexuiz.png nexuiz.ico
	sed -e 's/@DPSELF@/nexuiz/g' \
		-e 's/@DPROLE@/client/g' \
		-e 's/@DPBINARY@/darkplaces/g' \
		< debian/nexuiz.in > debian/tmp/nexuiz
	sed -e 's/@DPSELF@/nexuiz-server/g' \
		-e 's/@DPROLE@/server/g' \
		-e 's/@DPBINARY@/darkplaces-server/g' \
		< debian/nexuiz.in > debian/tmp/nexuiz-server