summaryrefslogtreecommitdiff
path: root/bin/mksrcinfo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mksrcinfo')
-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