[lightspark] 01/08: Add get-orig-source target.
Gabriele Giacone
gg0-guest at moszumanska.debian.org
Tue May 12 19:02:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
gg0-guest pushed a commit to branch master
in repository lightspark.
commit 7dae5fe2304a822a0aadf5db1ae22fdeadeeef02
Author: Gabriele Giacone <1o5g4r8o at gmail.com>
Date: Tue May 12 12:27:55 2015 +0200
Add get-orig-source target.
---
debian/rules | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/debian/rules b/debian/rules
index 314cd0e..fe37aba 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,8 @@ ifeq ($(DEB_HOST_ARCH),powerpcspe)
CONFFLAGS += -DDISABLE_ALTIVEC=TRUE
endif
+UVER := $(shell dpkg-parsechangelog|sed -n '/^Version/{s/Version: \(.*\)/\1/p}'|cut -f1 -d-)
+
%:
dh $@ --parallel
@@ -30,3 +32,12 @@ override_dh_shlibdeps:
override_dh_makeshlibs:
dh_makeshlibs -X/usr/lib/lightspark
+
+VER = $(UVER)+git$(shell date -u '+%Y%m%d')
+TMPDIR = lightspark-$(VER)
+get-orig-source:
+ @echo Git cloning lightspark $(VER)...
+ git clone --depth 1 https://github.com/lightspark/lightspark.git $(TMPDIR)
+ @echo Generating tarball...
+ cd $(TMPDIR) && tar --exclude .git -Jcf ../../lightspark_$(VER).orig.tar.xz .
+ rm -rf $(TMPDIR) && dch -v $(VER)-1 "New upstream snapshot."
--
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-flash/lightspark.git
More information about the pkg-flash-devel
mailing list