diff options
author | Erich Eckner <git@eckner.net> | 2017-08-30 09:32:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-30 09:32:08 +0200 |
commit | d73ac350bffa9b84258696cf7fc89deefc1f6897 (patch) | |
tree | 2abffba8ab0d2de65f84f03f4dccb11537b74968 /neuesPerlPaket | |
parent | f8fa1345061260b1a09e786bac06be059733f1c3 (diff) | |
download | archlinuxewe-d73ac350bffa9b84258696cf7fc89deefc1f6897.tar.xz |
neuesPerlPaket: create "any" package if possible
Diffstat (limited to 'neuesPerlPaket')
-rwxr-xr-x | neuesPerlPaket | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket index de8b7a0ce..1e6b1a09a 100755 --- a/neuesPerlPaket +++ b/neuesPerlPaket @@ -171,7 +171,19 @@ versteheMetaYml echo '}' ) > PKGBUILD -makepkg -fcrs --noconfirm --asdeps || exit 1 +needs_build=true + +while ${needs_build}; do + needs_build=false + makepkg -fcrs --noconfirm --asdeps || exit 1 + namcap ${pkgname}-*.pkg.tar.xz | \ + tee namcap.log + if grep -q ' W: No ELF files and not an "any" package$' namcap.log; then + rm ${pkgname}-*.pkg.tar.xz + needs_build=true + sed -i "s/^arch=.*\$/arch=('any')/" PKGBUILD + fi +done echo '' echo 'sieht soweit erst mal gut aus, oder?' |