File: rules

package info (click to toggle)
barrnap 0.9+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,256 kB
  • sloc: perl: 226; makefile: 62; sh: 15
file content (46 lines) | stat: -rwxr-xr-x 1,698 bytes parent folder | download | duplicates (2)
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
45
46
#!/usr/bin/make -f
# -*- makefile -*-

DH_VERBOSE=1
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
OVERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[+].*//')

%:
	dh $@

override_dh_auto_build:
	# pass

override_dh_auto_install:
	# pass

override_dh_auto_clean:
	rm -rf db/free

get-orig-source:
	uscan --verbose --force-download --repack --compression xz --destdir=..
	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