From a41bc954609a107a6044d6be0d681196a5184221 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 11 Apr 2018 14:19:19 +0200 Subject: lib/common-functions: make_source_info: put additional infos into .SRCINFO --- lib/common-functions | 21 +++++++++++++-------- 1 file 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}" ) -- cgit v1.2.3-70-g09d2