summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: e0a736b84220add21444b0da6d7e650bb536cd21 (plain)
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
#!/usr/bin/make -f

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

%:
	dh $@ --no-parallel

override_dh_auto_configure:
	dh_auto_configure -- --with-sh=/bin/bash


override_dh_shlibdeps:
	dh_shlibdeps -l/usr/lib/$(DEB_HOST_MULTIARCH)/pro-archman

get-orig-source:
	uscan --noconf --verbose --rename --force-download \
		--download-current-version

unpack-orig-source:
	for f in *; do \
		if [ -e $${f} ] && [ $${f} != debian ]; then \
			rm -Rf $${f}; \
		fi; \
	done
	set -e; \
	source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \
	version=$$(dpkg-parsechangelog | \
		sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \
	tar -xJf ../$${source}_$${version}.orig.tar.xz; \
	mv $${source}-$${version}/* .; \
	rmdir $${source}-$${version}/