From fd9a4f909c4b8f5737fcd951d0cdb841a2d6f931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 8 Mar 2015 04:54:11 +0100 Subject: Fix architecture specific dependencies of kubuntu-meta on Ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit cd601107f0ae1365a715d9aa6aaddc75bd3df127) --- .../metapackages/kubuntu-meta/debian/rules | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'ubuntu/maverick/metapackages/kubuntu-meta/debian/rules') diff --git a/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules b/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules index bd33ed27d..4ab7baa9d 100755 --- a/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules +++ b/ubuntu/maverick/metapackages/kubuntu-meta/debian/rules @@ -24,15 +24,36 @@ clean: DEB_BUILD_ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) build: debian/stamp-distrospecific build-stamp -build-stamp: desktop-$(DEB_BUILD_ARCH) +build-stamp: dh_clean for seed in desktop; do \ - package=kubuntu-$$seed; \ - (printf "$$package:Depends="; perl -pe 's/\n/, /g' $$seed-$(DEB_BUILD_ARCH); echo) \ + package=kubuntu-$$seed-trinity; \ + echo -n > debian/$$package.substvars; \ + if [ -f $$seed-all ]; then \ + (printf "$$seed-all:Depends="; perl -pe 's/\n/, /g' $$seed-all; echo) \ >> debian/$$package.substvars; \ - (printf "$$package:Recommends="; perl -pe 's/\n/, /g' $$seed-recommends-$(DEB_BUILD_ARCH); echo) \ + fi; \ + if [ -f $$seed-recommends-all ]; then \ + (printf "$$seed-all:Recommends="; perl -pe 's/\n/, /g' $$seed-recommends-all; echo) \ >> debian/$$package.substvars; \ + fi; \ + if [ -f $$seed-suggests-all ]; then \ + (printf "$$seed-all:Suggests="; perl -pe 's/\n/, /g' $$seed-suggests-all; echo) \ + >> debian/$$package.substvars; \ + fi; \ + if [ -f $$seed-$(DEB_BUILD_ARCH) ]; then \ + (printf "$$seed-arch:Depends="; perl -pe 's/\n/, /g' $$seed-$(DEB_BUILD_ARCH); echo) \ + >> debian/$$package.substvars; \ + fi; \ + if [ -f $$seed-recommends-$(DEB_BUILD_ARCH) ]; then \ + (printf "$$seed-arch:Recommends="; perl -pe 's/\n/, /g' $$seed-recommends-$(DEB_BUILD_ARCH); echo) \ + >> debian/$$package.substvars; \ + fi; \ + if [ -f $$seed-suggests-$(DEB_BUILD_ARCH) ]; then \ + (printf "$$seed-arch:Suggests="; perl -pe 's/\n/, /g' $$seed-suggests-$(DEB_BUILD_ARCH); echo) \ + >> debian/$$package.substvars; \ + fi; \ done touch $@ -- cgit v1.2.1