| 1 |
#!/usr/bin/make -f |
| 2 |
# Uncomment this to turn on verbose mode. |
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
include /usr/share/dpkg/pkg-info.mk |
| 6 |
|
| 7 |
# Use hardening options to build the package |
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
export DEB_VERSION_UPSTREAM |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ |
| 13 |
|
| 14 |
# Rename the binary xml -> xmlstarlet |
| 15 |
override_dh_auto_configure: |
| 16 |
dh_auto_configure -- --program-transform-name=s/xml$$/xmlstarlet/ --enable-build-docs |
| 17 |
|
| 18 |
override_dh_fixperms: |
| 19 |
dh_fixperms |
| 20 |
chmod 644 $(CURDIR)/debian/xmlstarlet/usr/share/doc/xmlstarlet/examples/xml/xmlstarlet*.xml |
| 21 |
|
| 22 |
override_dh_installchangelogs: |
| 23 |
dh_installchangelogs -XChangeLog |
| 24 |
|
| 25 |
override_dh_installexamples: |
| 26 |
dh_installexamples --exclude=log --exclude=trs examples/* |