File: rules

package info (click to toggle)
apt-build 0.12.47
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 432 kB
  • sloc: perl: 715; sh: 271; ansic: 168; makefile: 44
file content (11 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --parallel

override_dh_install:
	sed 's/my $$VERSION = .*/my $$VERSION = "$(shell head -n 1 debian/changelog | cut -d " " -f 2 | sed -e 's/(//; s/)//;' | cut -d "-" -f 2)";/' apt-build > debian/apt-build/usr/bin/apt-build
	install -d -m 755 debian/apt-build/usr/share/apt-build
	install -m 644 debian/apt-build.release.conf debian/apt-build/usr/share/apt-build/