summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-21 14:16:01 +0200
committerErich Eckner <git@eckner.net>2018-06-21 14:16:01 +0200
commit4a8b5198e57a0c275d20d83590e6ce0cb515ce22 (patch)
tree9d2c5b6718be2495807bdaa1255b2daaa361991e /lib/common-functions
parent028126708e6a532a807de81bd933af1f19b00eeb (diff)
downloadbuilder-4a8b5198e57a0c275d20d83590e6ce0cb515ce22.tar.xz
lib/common-functions: some *-doc and *-i18n packages have a differently named counterpart or no counterpart at all
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions26
1 files changed, 22 insertions, 4 deletions
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}"