r15944 - packages/trunk/supertuxkart/debian
Vincent Cheng
vcheng at moszumanska.debian.org
Sun Dec 4 02:18:58 UTC 2016
Author: vcheng
Date: 2016-12-04 02:18:58 +0000 (Sun, 04 Dec 2016)
New Revision: 15944
Modified:
packages/trunk/supertuxkart/debian/changelog
packages/trunk/supertuxkart/debian/rules
Log:
supertuxkart: add get-orig-source target to regenerate dfsg tarball
Modified: packages/trunk/supertuxkart/debian/changelog
===================================================================
--- packages/trunk/supertuxkart/debian/changelog 2016-11-28 20:25:03 UTC (rev 15943)
+++ packages/trunk/supertuxkart/debian/changelog 2016-12-04 02:18:58 UTC (rev 15944)
@@ -1,3 +1,9 @@
+supertuxkart (0.9.2-2) UNRELEASED; urgency=medium
+
+ *
+
+ -- Vincent Cheng <vcheng at debian.org> Sat, 03 Dec 2016 17:17:52 -0800
+
supertuxkart (0.9.2-1) unstable; urgency=medium
* New upstream release.
Modified: packages/trunk/supertuxkart/debian/rules
===================================================================
--- packages/trunk/supertuxkart/debian/rules 2016-11-28 20:25:03 UTC (rev 15943)
+++ packages/trunk/supertuxkart/debian/rules 2016-12-04 02:18:58 UTC (rev 15944)
@@ -7,6 +7,9 @@
export DEB_LDFLAGS_MAINT_APPEND=-lGLU
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog \
+ | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+SOURCE_DATE := $(shell dpkg-parsechangelog --show-field=Date)
%:
dh $@ --buildsystem=cmake --parallel
@@ -43,9 +46,9 @@
override_dh_install:
# Licenses are all documented in debian/copyright
- find $(CURDIR)/debian/tmp \( -iname "License.txt" -o -iname \
- "License.Debian.txt" -o -iname "Music_license.rtf" \) -delete
- rm -f $(CURDIR)/debian/tmp/usr/share/games/supertuxkart/data/tracks/overworld/licence2.txt
+ find $(CURDIR)/debian/tmp \( -iname "LICENSE" -o -iname "License.txt" \
+ -o -iname "license2.txt" -o -iname "License.Debian.txt" -o -iname \
+ "Music_license.rtf" \) -delete
# cmake installs some unneeded autotools-related files as well
find $(CURDIR)/debian/tmp \( -iname "Makefile.am" -o -iname \
@@ -70,3 +73,19 @@
override_dh_strip:
dh_strip --dbg-package=supertuxkart-dbg
+
+get-orig-source:
+ mkdir -p ../repack
+ uscan --force-download --destdir ../repack --download-version $(DEB_UPSTREAM_VERSION)
+ ( \
+ cd ../repack ;\
+ tar -xJf supertuxkart-$(DEB_UPSTREAM_VERSION)-src.tar.xz ;\
+ cd supertuxkart-$(DEB_UPSTREAM_VERSION) ;\
+ #830751 - remove Ubuntu font family fonts ;\
+ # also see debian/patches/replace-fonts-ubuntu-with-cantarell.patch ;\
+ rm -rf data/ttf/Ubuntu*.ttf data/ttf/ubuntu-font-licence-1.0.txt ;\
+ cd .. ;\
+ tar --mtime="$(SOURCE_DATE)" -cJf supertuxkart_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.xz supertuxkart-$(DEB_UPSTREAM_VERSION) ;\
+ mv supertuxkart_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.xz .. ;\
+ )
+ rm -rf ../repack
More information about the Pkg-games-commits
mailing list