From 4a8b5198e57a0c275d20d83590e6ce0cb515ce22 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 21 Jun 2018 14:16:01 +0200 Subject: lib/common-functions: some *-doc and *-i18n packages have a differently named counterpart or no counterpart at all --- lib/common-functions | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index 984f76c..84ff58d 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -320,11 +320,29 @@ make_source_info() { printf 'PKGBUILD = %s\n' "${PKGBUILD}" printf 'PKGBUILD_mod = %s\n' "${PKGBUILD_mod}" if [ "${package%-i18n}-i18n" = "${package}" ]; then - # *-i18n packages should have this dependency - printf '\tdepends = %s\n' "${package%-i18n}" + case "${package%-i18n}" in + 'python-oslo'|'python2-oslo') + ;; + *) + # *-i18n packages should have this dependency + printf '\tdepends = %s\n' "${package%-i18n}" + ;; + esac elif [ "${package%-doc}-doc" = "${package}" ]; then - # *-doc packages should have this dependency - printf '\tdepends = %s\n' "${package%-doc}" + case "${package%-doc}" in + 'gtk') + ;; + 'openjdk'*) + printf '\tdepends = %s\n' "${package%-doc}-src" + ;; + 'qt5') + printf '\tdepends = %s\n' "${package%-doc}-base" + ;; + *) + # *-doc packages should have this dependency + printf '\tdepends = %s\n' "${package%-doc}" + ;; + esac elif [ "${package%-docs}-docs" = "${package}" ]; then # *-doc packages should have this dependency printf '\tdepends = %s\n' "${package%-docs}" -- cgit v1.2.3-70-g09d2