]> git.donarmstrong.com Git - dactyl.git/blob - debian/rules
1.0~b6-2: Install /usr/share/xul-ext/pentadactyl/NEWS, closes: #637919
[dactyl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PACKAGES=pentadactyl # teledactyl melodactyl
4 VERSION=$(shell dpkg-parsechangelog | \
5         sed -n -e '/^Version:/ { s/^Version:\s*//; s/[^a-z0-9]/_/g; p }')
6
7 %:
8         dh $@ --with xul-ext
9
10 override_dh_auto_build:
11         make DIRS=$(PACKAGES) MANGLE=chrome XPI_FILES='bootstrap.js NEWS' xpi
12
13 override_dh_auto_install:
14         for PACKAGE in $(PACKAGES); \
15                 do install-xpi -p xul-ext-$$PACKAGE downloads/$$PACKAGE-*.xpi; \
16                 done
17
18 override_dh_auto_clean:
19         make DIRS=$(PACKAGES) clean
20         for PACKAGE in $(PACKAGES); \
21                 do rm -f $$PACKAGE/chrome.zip; \
22                 done
23
24 override_dh_installchangelogs:
25         for PACKAGE in $(PACKAGES); \
26                 do dh_installchangelogs -p xul-ext-$$PACKAGE $$PACKAGE/NEWS; \
27                 done
28
29 UPSTREAM_REPO=../upstream
30 UPSTREAM_REVISION=pentadactyl-1.0b6
31 UPSTREAM_DEST=$(shell pwd)/dactyl.tar.gz
32
33 get-orig-source:
34         rm -f .hg-repo-created
35         test -d $(UPSTREAM_REPO) || ( cd `dirname $(UPSTREAM_REPO)` && \
36                 hg clone http://dactyl.googlecode.com/hg/ `basename $(UPSTREAM_REPO)` && \
37                 touch .hg-repo-created )
38         hg --cwd $(UPSTREAM_REPO) pull
39         hg --cwd $(UPSTREAM_REPO) update
40         hg --cwd $(UPSTREAM_REPO) archive \
41                 -r $(UPSTREAM_REVISION) -p dactyl \
42                 -X .hgtags -X common/javascript.vim \
43                 -t tgz $(UPSTREAM_DEST)
44         test ! -f .hg-repo-created || ( rm -rf $(UPSTREAM_REPO); rm -f .hg-repo-created )