index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-25 21:45:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-25 21:45:07 +0200 |
commit | 2bde02269f5c157c90da2e8412885de7ea497af2 (patch) | |
tree | 0db2f020bf9177ce5280819fe04b88f05187fc01 /bin | |
parent | 906bc372e5f389e6bfb690fdab6bc076d66a3c2c (diff) |
-rwxr-xr-x | bin/mksrcinfo | 22 |
diff --git a/bin/mksrcinfo b/bin/mksrcinfo index 7dc62e1..e412178 100755 --- a/bin/mksrcinfo +++ b/bin/mksrcinfo @@ -3,12 +3,18 @@ # generate .SRCINFO from PKGBUILD # bleh - this should really be handled by makepkg! -# TODO: +( + . ./PKGBUILD -# maybe source PKGBUILD instead of 'makepkg --printsrcinfo' and -# 'mksrcinfo'? - -grep -q '\$CARCH' 'PKGBUILD' && \ - CARCH=i686 makepkg --printsrcinfo > \ - '.SRCINFO' || \ - mksrcinfo -o .SRCINFO + if [ -z "${pkgbase}" ]; then + printf 'pkgbase = %s\n' "${pkgname}" + else + 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[@]}" + printf 'pkgname = %s\n' "${pkgname[@]}" +) > .SRCINFO |