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-06-26 09:24:48 +0200
committerErich Eckner <git@eckner.net>2017-06-26 09:24:48 +0200
commit31fb98113f42030828f800a0867948e92975d327 (patch)
tree09005cceaeccbbc0c3388f3ae3e5b13cf65422e6 /bin
parent2bde02269f5c157c90da2e8412885de7ea497af2 (diff)
bin/mksrcinfo: use bash, also print *_i686
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mksrcinfo12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/mksrcinfo b/bin/mksrcinfo
index e412178..a2c9145 100755
--- a/bin/mksrcinfo
+++ b/bin/mksrcinfo
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# generate .SRCINFO from PKGBUILD
# bleh - this should really be handled by makepkg!
@@ -12,9 +12,11 @@
printf 'pkgbase = %s\n' "${pkgbase}"
fi
printf '\tarch = %s\n' "${arch[@]}"
- printf '\tmakedepends = %s\n' "${makedepends[@]}"
- printf '\tcheckdepends = %s\n' "${checkdepends[@]}"
- printf '\tdepends = %s\n' "${depends[@]}"
- printf '\tprovides = %s\n' "${provides[@]}"
+ for print in 'makedepends' 'checkdepends' 'depends' 'provides'; do
+ printf '\t'"${print}"' = %s\n' $(eval echo '${'"${print}"'[@]}')
+ for a in 'i686'; do
+ printf '\t'"${print}"' = %s\n' $(eval echo '${'"${print}_${a}"'[@]}')
+ done
+ done
printf 'pkgname = %s\n' "${pkgname[@]}"
) > .SRCINFO