[SCM] packaging for the mame arcade game emulator branch, master, updated. 221ed594f88e34618f322399071193188d9c480f

Cesare Falco cesare.falco at gmail.com
Sat Mar 17 17:06:47 UTC 2012


The following commit has been merged in the master branch:
commit 221ed594f88e34618f322399071193188d9c480f
Author: Cesare Falco <cesare.falco at gmail.com>
Date:   Sat Mar 17 18:04:41 2012 +0100

    Added tmpdir while repacking nplayers zip

diff --git a/debian/rules b/debian/rules
index fb02d9f..d45071c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -186,7 +186,7 @@ $(MAME_FILEBASE)s.zip:
         "$(MAME_URL)$(MAME_PACKAGE)$(UPSTREAM_VERSION)s.zip" \
         -O $(MAME_FILEBASE)s.zip
 
-$(MAME_PACKAGE)_$(VERSION).orig.tar.xz: $(MAME_FILEBASE)s.zip
+$(MAME_TARBALL): $(MAME_FILEBASE)s.zip
 	mkdir $(TMPDIR)
 
 	# Create an orig.tar.xz tarball for MAME
@@ -219,14 +219,16 @@ $(NPLAYERS_ZIPFILE):
 	    -O $(NPLAYERS_ZIPFILE)
 
 $(NPLAYERS_TARBALL): $(NPLAYERS_ZIPFILE)
-	unzip $(NPLAYERS_ZIPFILE) -d $(NPLAYERS_PACKAGE)
+	mkdir $(TMPDIR)
+	unzip $(NPLAYERS_ZIPFILE) -d $(TMPDIR)/$(NPLAYERS_PACKAGE)
 	# Strip trailing CR
-	find $(NPLAYERS_PACKAGE) -type f | xargs sed -i "s/\r$$//"
-	tar -cvf - $(NPLAYERS_PACKAGE) | xz > ../$(NPLAYERS_TARBALL)
+	find $(TMPDIR)/$(NPLAYERS_PACKAGE) -type f | xargs sed -i "s/\r$$//"
+	tar -C $(TMPDIR) -cvf - $(NPLAYERS_PACKAGE) | xz > ../$(NPLAYERS_TARBALL)
 	rm -f $(NPLAYERS_ZIPFILE)
-	rm -rf $(NPLAYERS_PACKAGE)
+	rm -rf $(TMPDIR)
 
 get-orig-source: $(MAME_TARBALL) $(NPLAYERS_TARBALL)
+	echo "tarballs created in parent directory!"
 
 erase-upstream: clean
 	rm -rf artwork

-- 
packaging for the mame arcade game emulator



More information about the Pkg-games-commits mailing list