File: rules

package info (click to toggle)
aiksaurus 1.2.1%2Bdev-0.12-6.3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 99,592 kB
  • sloc: cpp: 9,872; sh: 8,411; objc: 466; php: 375; makefile: 219
file content (27 lines) | stat: -rwxr-xr-x 1,114 bytes parent folder | download
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	AUTOMAKE="automake --foreign" dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-gtk

override_dh_install:
	mkdir -p debian/tmp/usr/share/applications/
	install -D -m 644 debian/gaiksaurus.desktop debian/tmp/usr/share/applications/gaiksaurus.desktop
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
	rm -rf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*
	echo "deb_host_multiarch=$(DEB_HOST_MULTIARCH)" > debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/aiksaurus-1.2.pc
	cp debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/aiksaurus-1.2.pc debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/gaiksaurus-1.2.pc
	cat debian/aiksaurus-1.2.pc.in >> debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/aiksaurus-1.2.pc
	cat debian/gaiksaurus-1.2.pc.in >> debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/gaiksaurus-1.2.pc
	dh_install