File: rules

package info (click to toggle)
createrepo 0.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 452 kB
  • sloc: python: 2,287; makefile: 359; sh: 142
file content (14 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
PYTHON2 := $(shell pyversions -vr)

%:
	dh $@ --with python2

override_dh_auto_install:
	dh_auto_install -- SUBDIRS="bin docs"
	set -e && for py in $(PYTHON2); do \
		dh_auto_install -- -C createrepo \
			PKGDIR="/usr/lib/python$$py/dist-packages/$(SOURCE)"; \
	done