[ioquake3] 02/02: Skip dh_apparmor when built with profile pkg.flatpak.app
Simon McVittie
smcv at debian.org
Fri Aug 4 15:00:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch wip/flatpak-app
in repository ioquake3.
commit 0f32dd9c2e5e48f6dd7b6a664bdfaed782c901cb
Author: Simon McVittie <smcv at collabora.com>
Date: Thu Jul 27 18:44:42 2017 +0100
Skip dh_apparmor when built with profile pkg.flatpak.app
---
debian/changelog | 1 +
debian/control | 2 +-
debian/rules | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 6eb3127..dfc90b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ioquake3 (1.36+u20170720+dfsg1-2) UNRELEASED; urgency=medium
* Don't set DEFAULT_BASEDIR. This makes ioquake3 set it at runtime
from argv[0], making it relocatable, which is useful when building
it into a Flatpak app.
+ * Skip dh_apparmor when built with profile pkg.flatpak.app
-- Simon McVittie <smcv at debian.org> Thu, 27 Jul 2017 08:22:35 +0100
diff --git a/debian/control b/debian/control
index 4a7ef2d..1796137 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Uploaders:
Simon McVittie <smcv at debian.org>,
Build-Depends:
debhelper (>= 10),
- dh-apparmor [linux-any],
+ dh-apparmor [linux-any] <!pkg.flatpak.app>,
dpkg-dev (>= 1.16.1),
libcurl4-gnutls-dev,
libjpeg-dev,
diff --git a/debian/rules b/debian/rules
index 6e79d2d..164bd1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -74,12 +74,14 @@ override_dh_auto_install:
cd $(DESTDIR)/usr/lib/quake3/ta/baseq3 && ln -s ../../../ioquake3/baseq3/*.so .
cd $(DESTDIR)/usr/lib/quake3/ta/missionpack && ln -s ../../../ioquake3/missionpack/*.so .
+ifeq ($(filter pkg.flatpak.app,$(DEB_BUILD_PROFILES)),)
ifeq ($(DEB_HOST_ARCH_OS),linux)
override_dh_install-arch:
dh_install -a
dh_apparmor -pioquake3 --profile-name=usr.lib.ioquake3.ioquake3
dh_apparmor -pioquake3-server --profile-name=usr.lib.ioquake3.ioq3ded
endif
+endif
override_dh_strip:
dh_strip --ddeb-migration='ioquake3-dbg (<< 1.36+u20160914+dfsg1-1~)'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list