Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common-functions')
-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}"
)