The following commit has been merged in the master branch: commit d98009ea7fe9b80f558b7174a33f010e956585ce Author: Stephen Kitt <st...@sk2.org> Date: Tue Oct 27 07:11:52 2009 +0100
Add get-orig-source target. diff --git a/debian/changelog b/debian/changelog index 225865d..6a4cc28 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,12 @@ gnurobbo (0.62+dfsg-1) unstable; urgency=low + * Repackage upstream tarball to avoid shipping non-free files in the + source package. * Update watch file to handle upstream's "-source" suffix and our "+dfsg" suffix. + * Add get-orig-source target to repackage the original tarball, removing + non-free fonts (with their incorrect license files) and unnecessary + binaries. -- Stephen Kitt <st...@sk2.org> Tue, 27 Oct 2009 07:08:11 +0100 diff --git a/debian/rules b/debian/rules index efa1c0a..311a719 100755 --- a/debian/rules +++ b/debian/rules @@ -30,4 +30,26 @@ binary-indep: binary: dh binary -.PHONY: build clean binary-indep binary-arch binary install +get-orig-source: + DEHS=$$(mktemp) && \ + uscan --dehs --download --destdir . --package gnurobbo \ + --upstream-version 0 --repack \ + --force-download --watchfile $(dir $(_))/watch > $$DEHS && \ + VERSION=$$(sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p' $$DEHS) && \ + DESTDIR=$$PWD && \ + SRC=$$PWD/gnurobbo_$$VERSION.orig.tar.gz && \ + DEST=$$PWD/gnurobbo_$$VERSION+dfsg.orig.tar.gz && \ + TMPDIR=$$(mktemp -d) && \ + cd $$TMPDIR && \ + tar xzf $$SRC && \ + mv gnurobbo-$$VERSION gnurobbo-$$VERSION+dfsg && \ + cd gnurobbo-$$VERSION+dfsg && \ + rm -f data/skins/*/*.ttf data/skins/*/LICENSE-ttf gnurobbo && \ + cd .. && \ + rm -f $$DEST && \ + tar czf $$DEST gnurobbo-$$VERSION+dfsg && \ + cd $$DESTDIR && \ + rm -rf $$TMPDIR && \ + rm -f $$DEHS + +.PHONY: build clean binary-indep binary-arch binary install get-orig-source -- logic game ported from ATARI XE/XL _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits