[Python-apps-commits] r7079 - in packages/laudio/trunk/debian (rules)
cjsmo-guest at users.alioth.debian.org
cjsmo-guest at users.alioth.debian.org
Mon May 9 11:09:29 UTC 2011
Date: Monday, May 9, 2011 @ 11:08:46
Author: cjsmo-guest
Revision: 7079
added get-orig-source to rules
Modified:
packages/laudio/trunk/debian/rules
Modified: packages/laudio/trunk/debian/rules
===================================================================
--- packages/laudio/trunk/debian/rules 2011-05-09 09:43:15 UTC (rev 7078)
+++ packages/laudio/trunk/debian/rules 2011-05-09 11:08:46 UTC (rev 7079)
@@ -1,5 +1,8 @@
#!/usr/bin/make -f
+# Grab the version from the changelog, up to the first -
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+
%:
dh $@ --with python2
@@ -8,3 +11,13 @@
override_dh_install:
dh_install -XCOPYING -X.swf -Xjquery-1.5.min.js -Xsetup.sh
+
+get-orig-source:
+ uscan --noconf --force-download --download-current-version --no-symlink --destdir=.
+ tar -xvf v$(DEB_UPSTREAM_VERSION).tar.gz
+ rm v$(DEB_UPSTREAM_VERSION).tar.gz
+ mv Raydiation-Laudio-* laudio-$(DEB_UPSTREAM_VERSION).orig
+ GZIP=--best tar -cz --owner root --group root --mode a+rX \
+ -f laudio_$(DEB_UPSTREAM_VERSION).orig.tar.gz laudio-$(DEB_UPSTREAM_VERSION).orig
+ rm -r laudio-$(DEB_UPSTREAM_VERSION).orig
+ mv laudio_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../
More information about the Python-apps-commits
mailing list