r5333 - packages/trunk/funguloids/debian

Andres Mejia ceros-guest at alioth.debian.org
Mon Jan 14 06:16:32 UTC 2008


Author: ceros-guest
Date: 2008-01-14 06:16:32 +0000 (Mon, 14 Jan 2008)
New Revision: 5333

Modified:
   packages/trunk/funguloids/debian/changelog
   packages/trunk/funguloids/debian/rules
Log:
Provide get-orig-source rule.

Modified: packages/trunk/funguloids/debian/changelog
===================================================================
--- packages/trunk/funguloids/debian/changelog	2008-01-14 05:26:37 UTC (rev 5332)
+++ packages/trunk/funguloids/debian/changelog	2008-01-14 06:16:32 UTC (rev 5333)
@@ -30,6 +30,7 @@
     + Don't use CXX variable.
   * Providing another scan for watchfile.
   * Give exact link used to download upstream tarball in copyright file.
+  * Provide get-orig-source rule.
 
  -- Andres Mejia <mcitadel at gmail.com>  Sat, 12 Jan 2008 00:46:39 -0500
 

Modified: packages/trunk/funguloids/debian/rules
===================================================================
--- packages/trunk/funguloids/debian/rules	2008-01-14 05:26:37 UTC (rev 5332)
+++ packages/trunk/funguloids/debian/rules	2008-01-14 06:16:32 UTC (rev 5333)
@@ -96,5 +96,41 @@
 	dh_md5sums
 	dh_builddeb
 
+# Common variables used to ease maintenance of the get-orig-source rule.
+FUNGULOIDS_TARBALL = funguloids-linux-1.06-4.tar.bz2
+FUNGULOIDS_VERSION = 1.06
+CORRECT_CHECKSUM = 1d9d92b08f58715d3dcb59c2ebcb7db7
+COMPUTED_CHECKSUM = $(shell md5sum $(FUNGULOIDS_TARBALL) | cut -d ' ' -f 1)
+get-orig-source:
+	[ -e $(FUNGULOIDS_TARBALL) ] || \
+		wget http://downloads.sourceforge.net/funguloids/$(FUNGULOIDS_TARBALL)
+ifeq ($(CORRECT_CHECKSUM),$(COMPUTED_CHECKSUM))
+	@echo Generating orig tarball
+	tar -xjf $(FUNGULOIDS_TARBALL)
+	mv funguloids funguloids-$(FUNGULOIDS_VERSION).orig
+# This next part shouldn't have been done. It won't be done on next release
+# or next time the orig tarball is reuploaded.
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/build-aux/install-sh
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/build-aux/missing
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/build-aux/depcomp
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/bin/music/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/bin/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/bin/icon/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/bin/docs/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/include/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/src/Makefile.in
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/configure
+	rm funguloids-$(FUNGULOIDS_VERSION).orig/aclocal.m4
+	tar -czf funguloids_$(FUNGULOIDS_VERSION).orig.tar.gz funguloids-$(FUNGULOIDS_VERSION).orig
+	rm -rf funguloids-$(FUNGULOIDS_VERSION).orig
+	rm $(FUNGULOIDS_TARBALL)
+	@echo done.
+else
+	@echo Checksum mismatch. Correct checksum is $(CORRECT_CHECKSUM).
+	@echo Computed checksum was $(COMPUTED_CHECKSUM).
+	exit 1
+endif
+
 binary: binary-arch
 .PHONY: unpack configure build clean binary-indep binary-arch binary install 




More information about the Pkg-games-commits mailing list