diff options
author | Erich Eckner <git@eckner.net> | 2017-09-07 09:26:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-07 09:26:07 +0200 |
commit | f721559a4f9d215f13cb2f4b81cb8bf13fcc4050 (patch) | |
tree | f4ed9bc8f0a92018dae50f5c406387044b49b450 | |
parent | 5a8a7442666e178adc19ccb8bfae40009a61f856 (diff) | |
download | archlinuxewe-f721559a4f9d215f13cb2f4b81cb8bf13fcc4050.tar.xz |
neuesPerlPaket: gibt nun die Moeglichkeit, die PKGBUILD zu editieren
-rwxr-xr-x | neuesPerlPaket | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket index 1e6b1a09a..6187dc52b 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 |