File: rules

package info (click to toggle)
gnome-shell-extension-weather 0~20160325.gitb5415ec-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,400 kB
  • ctags: 54
  • sloc: makefile: 76; sh: 55
file content (19 lines) | stat: -rwxr-xr-x 696 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

# `make check' crashes and is useless, so disable it
override_dh_auto_test:

get-orig-source:
	git clone https://github.com/jenslody/gnome-shell-extension-openweather.git gnome-shell-extension-weather-$(DEB_VERSION_UPSTREAM)
	cd gnome-shell-extension-weather-$(DEB_VERSION_UPSTREAM) && \
		git checkout `echo $(DEB_VERSION_UPSTREAM) | sed 's/.*git//'`
	tar --exclude-vcs -caf gnome-shell-extension-weather_$(DEB_VERSION_UPSTREAM).orig.tar.xz gnome-shell-extension-weather-$(DEB_VERSION_UPSTREAM)
	rm -rf gnome-shell-extension-weather-$(DEB_VERSION_UPSTREAM)