[Pkg-cli-libs-commits] [SCM] hyena branch, master, updated. 67902a365daa1cda5c7afff05ec47a0463af0f88
Chow Loong Jin
hyperair at gmail.com
Mon Sep 21 19:41:28 UTC 2009
The following commit has been merged in the master branch:
commit e2256a20b3544e2842394f9cea95a777a8711709
Author: Chow Loong Jin <hyperair at gmail.com>
Date: Tue Sep 22 01:43:35 2009 +0800
Add watch file and get-orig-source rule
diff --git a/debian/rules b/debian/rules
index b599eff..5d60d5c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,14 @@
include /usr/share/cli-common/cli.make
+DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST)))
+VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \
+ sed -n 's/\-.*$$//;s/Version: //p')
+USCAN = uscan \
+ --package=hyena \
+ --watchfile=$(DEBIAN_DIR)/watch \
+ --upstream-version=$(VERSION)
+
override_dh_auto_configure:
dh_auto_configure -- \
MCS=/usr/bin/mono-csc \
@@ -26,5 +34,12 @@ override_dh_auto_clean:
dh_auto_clean
rm -rf Hyena.zip Hyena.tree monodoc
+get-orig-source:
+ $(USCAN) \
+ --download \
+ --force-download \
+ --rename \
+ --destdir=.
+
%:
dh $@
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..43f6815
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://ftp.gnome.org/pub/GNOME/sources/hyena/([0-9.]+)/ hyena-([0-9.]+).tar.gz
--
hyena
More information about the Pkg-cli-libs-commits
mailing list