File: rules

package info (click to toggle)
libpwquality 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,948 kB
  • ctags: 362
  • sloc: sh: 12,101; ansic: 2,017; makefile: 90; python: 30; sed: 16
file content (22 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

TARBALL_EXT = tar.bz2
GNOME_DOWNLOAD_URL = https://fedorahosted.org/releases/l/i/libpwquality/$(GNOME_TARBALL)

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
PYVER := $(shell pyversions -d)

override_dh_clean:
	dh_clean
	rm -rf python/build

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-securedir=/lib/$(DEB_HOST_MULTIARCH)/security \
		--with-python-rev=$(subst python,,$(PYVER)) \
		--with-pythonsitedir=/usr/lib/$(PYVER)/dist-packages/

%:
	dh $@ --with autoreconf,python2,gnome