File: rules

package info (click to toggle)
mkchromecast 0.3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,348 kB
  • sloc: python: 4,171; makefile: 48
file content (37 lines) | stat: -rwxr-xr-x 991 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.

GIT='https://github.com/muammar/mkchromecast'
# The full changelog version number, used for the orig.tar.gz
VER=$(shell dpkg-parsechangelog -ldebian/changelog -SVersion | cut -d- -f1)
export DH_VERBOSE = 1

export PYBUILD_NAME=mkchromecast

%:
	dh $@  --with python3

override_dh_auto_build:
	touch build

override_dh_auto_test:
	echo 'Do nothing'

override_dh_install:
	dh_install
	dh_python3
	chmod +x debian/mkchromecast/usr/share/mkchromecast/mkchromecast.py

override_dh_auto_clean:
	echo 'Cleaning *.pyc'
	find . -name \*.pyc -exec rm {} \;

get-orig-source:
	rm -rf mkchromecast-$(VER)
	git clone -b debian $(GIT) mkchromecast-$(VER)
	cd mkchromecast-$(VER)
	git archive --format=tar --prefix=mkchromecast-$(VER)/ HEAD > mkchromecast_$(VER).orig.tar
	gzip --best mkchromecast_$(VER).orig.tar
	mv mkchromecast_$(VER).orig.tar.gz ..
	rm -rf mkchromecast-$(VER)