Package list barrnap / 71c367f
add README.source Sascha Steinbiss 6 years ago
2 changed file(s) with 29 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
0 The upstream source contains .hmm files with a non-free license. Use the
1 get-orig-source target to repack the upstream source, removing the problematic
2 HMMs in the process.
99 dh $@ --parallel
1010
1111 override_dh_auto_build:
12 mkdir db/free
13 debian/filter_hmms.lua 28S < db/euk.hmm > db/free/euk.hmm
14 debian/filter_hmms.lua 23S < db/arc.hmm > db/free/arc.hmm
15 debian/filter_hmms.lua 23S < db/bac.hmm > db/free/bac.hmm
16 mkdir db/nonfree
17 debian/filter_hmms.lua 28S t < db/euk.hmm > db/nonfree/euk.hmm
18 debian/filter_hmms.lua 23S t < db/arc.hmm > db/nonfree/arc.hmm
19 debian/filter_hmms.lua 23S t < db/bac.hmm > db/nonfree/bac.hmm
12 # pass
2013
2114 override_dh_auto_install:
2215 # pass
2316
2417 override_dh_auto_clean:
25 rm -rf db/free db/nonfree
18 rm -rf db/free
2619
2720 get-orig-source:
2821 uscan --verbose --force-download --repack --compression xz --destdir=..
29 mv ../barrnap_$(OVERSION).orig.tar.xz ../barrnap_$(VERSION).orig.tar.xz
30
22 unxz ../barrnap_$(OVERSION).orig.tar.xz
23 mkdir -p debian/repack-tmp
24 tar xf ../barrnap_$(OVERSION).orig.tar -C debian/repack-tmp
25 rm ../barrnap_$(OVERSION).orig.tar
26 mkdir -p debian/repack-tmp/barrnap-$(OVERSION)/db/free
27 debian/filter_hmms.lua 28S < \
28 debian/repack-tmp/barrnap-$(OVERSION)/db/euk.hmm > \
29 debian/repack-tmp/barrnap-$(OVERSION)/db/free/euk.hmm
30 debian/filter_hmms.lua 23S < \
31 debian/repack-tmp/barrnap-$(OVERSION)/db/arc.hmm > \
32 debian/repack-tmp/barrnap-$(OVERSION)/db/free/arc.hmm
33 debian/filter_hmms.lua 23S < \
34 debian/repack-tmp/barrnap-$(OVERSION)/db/bac.hmm > \
35 debian/repack-tmp/barrnap-$(OVERSION)/db/free/bac.hmm
36 mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/euk.hmm \
37 debian/repack-tmp/barrnap-$(OVERSION)/db/euk.hmm
38 mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/bac.hmm \
39 debian/repack-tmp/barrnap-$(OVERSION)/db/bac.hmm
40 mv debian/repack-tmp/barrnap-$(OVERSION)/db/free/arc.hmm \
41 debian/repack-tmp/barrnap-$(OVERSION)/db/arc.hmm
42 rm -rf debian/repack-tmp/barrnap-$(OVERSION)/db/free
43 tar cf ../barrnap_$(VERSION).orig.tar -C debian/repack-tmp barrnap-$(OVERSION)
44 xz ../barrnap_$(VERSION).orig.tar
45 rm -rf debian/repack-tmp