1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
NAME=zsh-syntax-highlighting
PREFIX=/usr
# Remove COPYING.md as duplicate of /usr/share/doc/.../copyright
override_dh_auto_install:
dh_auto_install -- PREFIX=$(PREFIX)
rm debian/$(NAME)/usr/share/doc/$(NAME)/COPYING.md
# Remove 'changelog.md' which both upstream and debhelper install to different names
override_dh_installchangelogs:
dh_installchangelogs
rm debian/$(NAME)/usr/share/doc/$(NAME)/changelog.md
%:
dh $@
_origtar: version=$(shell dpkg-parsechangelog -SVersion | sed 's/-[^-]*$$//')
_origtar:
git tag --verify $(version)
git archive --format=tar --output=../zsh-syntax-highlighting_$(version).orig.tar --prefix=zsh-syntax-highlighting-$(version)/ $(version)
xz -7v ../zsh-syntax-highlighting_$(version).orig.tar
|