File: rules

package info (click to toggle)
gargoyle-free 2023.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,096 kB
  • sloc: ansic: 246,256; cpp: 184,798; asm: 5,889; javascript: 5,588; python: 902; sh: 626; makefile: 590; objc: 483; xml: 149
file content (30 lines) | stat: -rwxr-xr-x 982 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
28
29
30
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

TARGET  := $(CURDIR)/debian/gargoyle-free

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_SHARED_LIBS=OFF

override_dh_auto_install:
	dh_auto_install
#	'debian/install' doesn't support renaming files:
#	(last field is always a directory, even without a trailing '/')
	(cd $(TARGET) ; mv usr/bin/gargoyle usr/games/gargoyle-free)
	(cd $(TARGET) ; mv usr/share/man/man6/gargoyle.6 usr/share/man/man6/gargoyle-free.6)
	rmdir --ignore-fail-on-non-empty $(TARGET)/usr/bin
	rm -rf $(TARGET)/usr/include
	rm -rf $(TARGET)/usr/lib
	rm -rf $(TARGET)/usr/share/icons/hicolor # bug 1019713

override_dh_install:
	dh_install
	sed -i '/^monofont/s/Gargoyle\ Mono/Go\ Mono/' $(TARGET)/etc/garglk.ini
	sed -i '/^propfont/s/Gargoyle\ Serif/Charis\ SIL/' $(TARGET)/etc/garglk.ini