Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-14 15:50:34 +0200
committerErich Eckner <git@eckner.net>2017-07-14 15:50:34 +0200
commit8c027759cd8e7f9a0ab9b189f5d871c0a6ed23d0 (patch)
tree59bdb15c032e7d7a7f6abd33f0a94e2db4297af0 /bin
parent23726784c08e47566691a5870b785742d80f2879 (diff)
bin/common-functions: include base (and base-devel) into package metadata
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 3c1bd1a..f927386 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -143,13 +143,13 @@ generate_package_metadata() {
echo "make_source_info failed."
exit 1
fi
- if [ ! -f "${file_prefix}.SRCINFO" ]; then
+ if [ ! -s "${file_prefix}.SRCINFO" ]; then
>&2 printf '"%s" not created by "make_source_info" - eh, what?' "${file_prefix}.SRCINFO"
exit 1
fi
# otherwise this just calls for trouble
- sed -i '/=\s*$/d' "${file_prefix}.SRCINFO"
+ sed -i '/^[^=]*=\s*$/d' "${file_prefix}.SRCINFO"
# extract "builds" = provides \cup pkgname
grep "$(printf '^\\(\tprovides\\|pkgname\\) = \\|^\tgroups = base')" "${file_prefix}.SRCINFO" | \
@@ -167,6 +167,7 @@ generate_package_metadata() {
# extract "depends" = makedepends \cup checkdepends \cup depends
(
+ printf 'all_depend = %s\n' 'base' 'base-devel'
sed -n "$(printf '/^pkgname = /q;/^\tdepends = /p')" "${file_prefix}.SRCINFO"
grep "$(printf '^\t\\(makedepends\\|checkdepends\\) = ')" "${file_prefix}.SRCINFO"
) | \
@@ -179,6 +180,7 @@ generate_package_metadata() {
(
cat "${file_prefix}.depends"
sed 'p' "${file_prefix}.builds"
+ printf '%s\n' 'base-devel' 'base-devel'
) | \
sort | \
uniq -u > \