[quakespasm] 09/11: Build and install quakespasm.pak.

Stephen Kitt skitt at moszumanska.debian.org
Mon Mar 23 22:57:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository quakespasm.

commit 1f46a9f83df0ce963c7952c42d82bb714c1e2404
Author: Stephen Kitt <steve at sk2.org>
Date:   Mon Mar 23 23:44:25 2015 +0100

    Build and install quakespasm.pak.
---
 debian/changelog                   |  1 +
 debian/patches/mkpak-bashism.patch | 11 +++++++++++
 debian/patches/series              |  1 +
 debian/rules                       |  4 ++++
 4 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4cf4810..89cee0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ quakespasm (0.90.0-1) UNRELEASED; urgency=medium
   * Build with SDL2, FLAC, OPUS and MikMod.
   * Rework debian/copyright.
   * wrap-and-sort.
+  * Build and install quakespasm.pak.
 
  -- Stephen Kitt <skitt at debian.org>  Sun, 22 Mar 2015 21:40:57 +0100
 
diff --git a/debian/patches/mkpak-bashism.patch b/debian/patches/mkpak-bashism.patch
new file mode 100644
index 0000000..7572ed1
--- /dev/null
+++ b/debian/patches/mkpak-bashism.patch
@@ -0,0 +1,11 @@
+Description: Use bash for mkpak.sh
+Author: Stephen Kitt <skitt at debian.org>
+
+--- a/Misc/qs_pak/mkpak.sh
++++ b/Misc/qs_pak/mkpak.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ #
+ # Copyright (c) 2014, Sander van Dijk <a.h.vandijk at gmail.com>
+ #
diff --git a/debian/patches/series b/debian/patches/series
index 379664b..be28127 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 remove-redundant-linking.patch
 mp3-copyright.patch
 use-inherited-build-flags.patch
+mkpak-bashism.patch
diff --git a/debian/rules b/debian/rules
index 8ba1886..46f3a40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@ endif
 
 override_dh_auto_clean:
 	make -C Quake clean
+	rm -f Misc/qs_pak/quakespasm.pak
 
 override_dh_auto_build:
 	make -C Quake \
@@ -29,10 +30,13 @@ override_dh_auto_build:
 		USE_CODEC_OPUS=1 \
 		USE_CODEC_MIKMOD=1 \
 		USE_CODEC_UMX=1
+	make -C Misc/qs_pak
 
 override_dh_auto_install:
 	install -d $(DESTDIR)/usr/games
 	install Quake/quakespasm $(DESTDIR)/usr/games
+	install -d $(DESTDIR)/usr/share/games/quake
+	install -m 644 Misc/qs_pak/quakespasm.pak $(DESTDIR)/usr/share/games/quake
 
 override_dh_installchangelogs:
 	dh_installchangelogs debian/upstream-changelog

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/quakespasm.git



More information about the Pkg-games-commits mailing list