File: rules

package info (click to toggle)
hdmi2usb-fx2-firmware 0.0.0~git20151225-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 868 kB
  • ctags: 1,220
  • sloc: ansic: 3,276; python: 259; cpp: 243; makefile: 177; sh: 20
file content (17 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@

VER=$(shell dpkg-parsechangelog | sed -rne 's/^Version: (.+)-.*/\1/p')
BRANCH=opsis-uart-with-eeprom-serialno
get-packaged-orig-source:
	git clone https://github.com/mithro/fx2lib -b $(BRANCH)
	set -xe; \
		GIT_DATE=$$(dpkg-parsechangelog | sed -rne 's/^Version: .*\~git(....)(..)(..)-.*/\1-\2-\3 00:00:00 UTC/p'); \
		cd fx2lib; \
		GIT_COMMIT=$$(git rev-list -n1 --until="$$GIT_DATE" $(BRANCH)); \
		git archive $$GIT_COMMIT --prefix=hdmi2usb-fx2-firmware_$(VER).orig/ \
			-o ../hdmi2usb-fx2-firmware_$(VER).orig.tar
	xz -f hdmi2usb-fx2-firmware_$(VER).orig.tar
	rm -rf fx2lib