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-04-11 14:19:19 +0200
committerErich Eckner <git@eckner.net>2018-04-11 14:19:19 +0200
commita41bc954609a107a6044d6be0d681196a5184221 (patch)
treec4a461f3a6645e3d5ea3970f0dc8e18fd5afb7e3 /lib
parent968413b9f6b56d4a804e109d920540a81ede4907 (diff)
lib/common-functions: make_source_info: put additional infos into .SRCINFO
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions21
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}"
)