File: rules

package info (click to toggle)
assaultcube 1.3.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 4,344 kB
  • sloc: cpp: 56,878; sh: 11,155; ansic: 4,544; makefile: 385
file content (16 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/default.mk
VERSION ?= $(subst +dfsg,,$(DEB_VERSION_UPSTREAM))

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -fPIE
export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie -Wl,-z,now

%:
	dh $@ --sourcedirectory=source/src
	
override_dh_installdeb:
	sed 's/#VERSION#/$(VERSION)/g' debian/assaultcube.postinst.in > debian/assaultcube.postinst
	dh_installdeb