From f721559a4f9d215f13cb2f4b81cb8bf13fcc4050 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Sep 2017 09:26:07 +0200 Subject: neuesPerlPaket: gibt nun die Moeglichkeit, die PKGBUILD zu editieren --- neuesPerlPaket | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'neuesPerlPaket') diff --git a/neuesPerlPaket b/neuesPerlPaket index 1e6b1a09..6187dc52 100755 --- a/neuesPerlPaket +++ b/neuesPerlPaket @@ -174,26 +174,37 @@ versteheMetaYml 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?' -read antwort + 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 -if [ -n "${antwort}" ] -then - echo 'ok, dann nicht ...' - exit 1 -fi + echo '' + echo 'sieht soweit erst mal gut aus, oder?' + read antwort + + case "${antwort}" in + '') + ;; + 'e') + nano PKGBUILD + needs_build=true + ;; + *) + echo 'ok, dann nicht ...' + exit 1 + ;; + esac + +done pacman -Qlp ${pkgname}-*.pkg.tar.xz -- cgit v1.2.3-54-g00ecf