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 34 35 36 37 38 39 40 41 42 43 44
|
DH_VERBOSE=1
include /usr/share/dpkg/default.mk
VERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
OVERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/^[[:digit:]]*://' -e 's/[+].*//')
%:
dh $@
override_dh_auto_build:
override_dh_auto_install:
FIXME_override_dh_auto_clean: # This does not work :-(
rm -rf db/free
unxz ../barrnap_$(OVERSION).orig.tar.xz
mkdir -p debian/repack-tmp
tar xf ../barrnap_$(OVERSION).orig.tar -C debian/repack-tmp
rm ../barrnap_$(OVERSION).orig.tar
mkdir -p debian/repack-tmp/barrnap-$(OVERSION)/db/free
debian/filter_hmms.lua 28S < \
debian/repack-tmp/barrnap-$(OVERSION)/db/euk.hmm > \
debian/repack-tmp/barrnap-$(OVERSION)/db/free/euk.hmm
debian/filter_hmms.lua 23S < \
debian/repack-tmp/barrnap-$(OVERSION)/db/arc.hmm > \
debian/repack-tmp/barrnap-$(OVERSION)/db/free/arc.hmm
debian/filter_hmms.lua 23S < \
debian/repack-tmp/barrnap-$(OVERSION)/db/bac.hmm > \
debian/repack-tmp/barrnap-$(OVERSION)/db/free/bac.hmm
mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/euk.hmm \
debian/repack-tmp/barrnap-$(OVERSION)/db/euk.hmm
mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/bac.hmm \
debian/repack-tmp/barrnap-$(OVERSION)/db/bac.hmm
mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/arc.hmm \
debian/repack-tmp/barrnap-$(OVERSION)/db/arc.hmm
rm -rf debian/repack-tmp/barrnap-$(OVERSION)/db/free
tar cf ../barrnap_$(VERSION).orig.tar -C debian/repack-tmp barrnap-$(OVERSION)
xz ../barrnap_$(VERSION).orig.tar
rm -rf debian/repack-tmp
|