index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-26 09:24:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-26 09:24:48 +0200 |
commit | 31fb98113f42030828f800a0867948e92975d327 (patch) | |
tree | 09005cceaeccbbc0c3388f3ae3e5b13cf65422e6 /bin/mksrcinfo | |
parent | 2bde02269f5c157c90da2e8412885de7ea497af2 (diff) |
-rwxr-xr-x | bin/mksrcinfo | 12 |
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 |