Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 5f124d3..2d2fd52 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -131,6 +131,7 @@ generate_package_metadata() {
if [ -e "${file_prefix}.builds" ] && \
[ -e "${file_prefix}.depends" ] && \
[ -e "${file_prefix}.needs" ] && \
+ [ -e "${file_prefix}.groups" ] && \
[ -e "${file_prefix}.packages" ]; then
return 0
fi
@@ -154,6 +155,13 @@ generate_package_metadata() {
sort -u > \
"${file_prefix}.builds"
+ # extract "groups" = groups
+ grep "$(printf '^\tgroups = ')" "${file_prefix}.SRCINFO" | \
+ cut -d= -f2 | \
+ sed 's|^\s\+||; s|[<>]$||' | \
+ sort -u > \
+ "${file_prefix}.groups"
+
# extract "packages" = pkgname
grep '^pkgname = ' "${file_prefix}.SRCINFO" | \
cut -d= -f2 | \