diff options
author | Erich Eckner <git@eckner.net> | 2018-04-11 14:19:19 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-11 14:19:19 +0200 |
commit | a41bc954609a107a6044d6be0d681196a5184221 (patch) | |
tree | c4a461f3a6645e3d5ea3970f0dc8e18fd5afb7e3 /lib | |
parent | 968413b9f6b56d4a804e109d920540a81ede4907 (diff) | |
download | builder-a41bc954609a107a6044d6be0d681196a5184221.tar.xz |
lib/common-functions: make_source_info: put additional infos into .SRCINFO
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/common-functions | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/common-functions b/lib/common-functions index aebf17f..0e4abff 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -513,16 +513,21 @@ make_source_info() { { cd "${tmp_dir}" + # some additional info + printf '\tupstream_git_repository = %s\n' "${git_repo}" + printf '\tPKGBUILD = %s\n' "${PKGBUILD}" + printf '\tPKGBUILD_mod = %s\n' "${PKGBUILD_mod}" + if [ "${package%-i18n}-i18n" = "${package}" ]; then + # *-i18n packages should have this dependency + printf '\tdepends = %s\n' "${package%-i18n}" + fi + if [ "${package%-doc}-doc" = "${package}" ]; then + # *-doc packages should have this dependency + printf '\tdepends = %s\n' "${package%-doc}" + fi makepkg --printsrcinfo cd .. - } | - if [ "${package%-i18n}-i18n" = "${package}" ]; then - sed ' - 1 a \\tdepends = '"${package%-i18n}"' - ' - else - cat - fi > \ + } > \ "${output}" ) |