File: rules

package info (click to toggle)
barrnap 0.9%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,256 kB
  • sloc: perl: 226; makefile: 60; sh: 15
file content (44 lines) | stat: -rwxr-xr-x 1,612 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
#!/usr/bin/make -f
# -*- makefile -*-

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:
	# pass

override_dh_auto_install:
	# pass

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