File: rules

package info (click to toggle)
kxml2 2.3.0%2Bds1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,196 kB
  • sloc: java: 5,607; xml: 104; makefile: 18
file content (28 lines) | stat: -rwxr-xr-x 712 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CURVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1)
UPVER=$(shell echo $(CURVER) | cut -d+ -f1)

%:
	dh $@ --with maven_repo_helper

override_dh_auto_build:
	dh_auto_build -- build_jar

override_dh_auto_clean:
	dh_clean dist/*

get-orig-source:
	uscan --verbose \
		--download-version $(UPVER) \
		--force-download \
		--destdir .
	unzip -d kxml2-$(CURVER) kxml2-src-$(UPVER).zip
	find kxml2-$(CURVER) \( -name "*.class" -o -name "*.jar" \) -delete
	tar cf kxml2_$(CURVER).orig.tar kxml2-$(CURVER)
	gzip -9 kxml2_$(CURVER).orig.tar
	rm -vrf kxml2-$(CURVER) kxml2-src-$(UPVER).zip