From d73ac350bffa9b84258696cf7fc89deefc1f6897 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 Aug 2017 09:32:08 +0200 Subject: neuesPerlPaket: create "any" package if possible --- neuesPerlPaket | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'neuesPerlPaket') 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?' -- cgit v1.2.3-70-g09d2