Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-21 22:39:25 +0200
committerErich Eckner <git@eckner.net>2018-06-21 22:39:25 +0200
commit172c5a102d8daff41e1dd21aa0d1bb0fde835532 (patch)
tree0671dc2f410c74808222a1a1d02930609ab85796 /lib
parentb65ff69cb4585d0df1140a584b39e1c486ef34c1 (diff)
lib/common-functions: dependency mangling should happen for _parts_ of split packages
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions43
1 files changed, 14 insertions, 29 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 84ff58d..64a11a7 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -319,35 +319,20 @@ make_source_info() {
printf 'upstream_git_repository = %s\n' "${git_repo}"
printf 'PKGBUILD = %s\n' "${PKGBUILD}"
printf 'PKGBUILD_mod = %s\n' "${PKGBUILD_mod}"
- if [ "${package%-i18n}-i18n" = "${package}" ]; then
- 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
- 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}"
- fi
- makepkg --printsrcinfo
+ makepkg --printsrcinfo | \
+ sed '
+ /^pkgname = / ! b
+ /= python2\?-oslo-i18n$/ b
+ s/= \(\S\+\)-i18n$/\0\n\tdepends = \1/
+ t
+ /= gtk-doc$/ b
+ s/= \(openjdk[0-9]\+\)-doc$/\0\n\tdepends = \1-src/
+ t
+ s/= \(qt5\)-doc$/\0\n\tdepends = \1-base/
+ t
+ s/= \(\S\+\)-docs\?$/\0\n\tdepends = \1/
+ t
+ '
cd ..
} > \
"${output}" || \