summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-12 20:50:33 +0100
committerErich Eckner <git@eckner.net>2017-11-12 20:50:33 +0100
commit282971c9c4cc973ab9966f4bdb55029d43fda2b2 (patch)
tree6822a289370be01f15ef41596eb55c808d05a0a6
parente395fe24beea48ef008c488b9f8afce990fd141f (diff)
downloadbuilder-282971c9c4cc973ab9966f4bdb55029d43fda2b2.tar.xz
bin/common-functions: make $pkgname-i18n appear depending on $pkgname
-rwxr-xr-xbin/common-functions9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 84f4a62..323a111 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -644,7 +644,14 @@ make_source_info() {
cd "${tmp_dir}"
makepkg --printsrcinfo
cd ..
- } > \
+ } |
+ if [ "${package%-i18n}-i18n" = "${package}" ]; then
+ sed '
+ 1 a \\tdepends = '"${package%-i18n}"'
+ '
+ else
+ cat
+ fi > \
"${output}"
)