File: rules

package info (click to toggle)
droopy 0.20160830-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 492 kB
  • sloc: python: 875; makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --with python3

DIR = $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)
DATE = $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/^.*\.//' | sed 's/^\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)$$/\1-\2-\3/')

get-orig-source:
	rm -rf /tmp/$(DIR)
	git clone https://github.com/stackp/Droopy.git /tmp/$(DIR)
	cd /tmp/$(DIR) && git archive --prefix=$(DIR)/ $$(git rev-list -n 1 --before=$(DATE) master) | xz -c > $(CURDIR)/../$(DEB_SOURCE)_$(UPSTREAM_VERSION).orig.tar.xz