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 33
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=-format,+bindnow,+pie
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--with-PSFontDir=/usr/share/fonts/type1/gsfonts \
--with-clippoly=no
execute_after_dh_install:
@echo prevent library files in libiv2 from being duplicated in libiv-unidraw2
find debian/libiv2t64/usr/lib -type f -o -type l \
| sed s:^debian/libiv2t64/:debian/libiv-unidraw2t64/: \
| xargs --no-run-if-empty rm --verbose
execute_before_dh_installexamples: debian/glyphs.tar
@echo "build glyphs tar file before trying to install it"
debian/glyphs.tar:
tar --create --file=$@ \
--mtime="@$(SOURCE_DATE_EPOCH)" --clamp-mtime \
--mode=u=rwX,go=rX \
--sort=name --owner=0 --group=0 --numeric-owner \
--exclude-backups --exclude='*.bak' \
--exclude=Makefile.depend --exclude='*.o' --exclude=a.out \
--directory=src glyphs
|