diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-04-08 16:07:19 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-04-08 23:58:05 +0000 |
commit | 3fa5acf0b5de71e85761611cd0eee1ac898a81d2 (patch) | |
tree | 4295491fd623e07fce852cd4a42141f03feca8f3 | |
parent | ddf0382a3ec399c74eefc52dd9a1dc0073298ed4 (diff) |
community/ncurses5: modernize
-rw-r--r-- | community/ncurses5/APKBUILD | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/community/ncurses5/APKBUILD b/community/ncurses5/APKBUILD index a4fe1548306..e6e207e1119 100644 --- a/community/ncurses5/APKBUILD +++ b/community/ncurses5/APKBUILD @@ -6,22 +6,17 @@ pkgdesc="Console display library - ncurses5 compat" url="https://www.gnu.org/software/ncurses/" arch="all" license=MIT -depends= -source="https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${pkgver}.tar.gz +source="https://ftp.gnu.org/pub/gnu/ncurses/ncurses-$pkgver.tar.gz ncurses-5.9-gcc-5.patch " subpackages="$pkgname-widec-libs:widec $pkgname-libs" replaces="ncurses" -_builddir="$srcdir"/ncurses-$pkgver +builddir="$srcdir"/ncurses-$pkgver + prepare() { - cd "$_builddir" - update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare + update_config_sub } build() { @@ -38,28 +33,23 @@ build() { --with-shared --without-static --without-progs" - cd "$_builddir" - mkdir ncurses-build ncursesw-build cd ncurses-build - ../configure $_confopts \ - || return 1 - make libs || return 1 + ../configure $_confopts + make libs cd ../ncursesw-build ../configure $_confopts \ - --enable-widec \ - || return 1 - make libs || return 1 + --enable-widec + make libs cd .. } package() { - cd "$_builddir" - make -j1 -C ncurses-build DESTDIR="$pkgdir" install.libs || return 1 - make -j1 -C ncursesw-build DESTDIR="$pkgdir" install.libs || return 1 + make -j1 -C ncurses-build DESTDIR="$pkgdir" install.libs + make -j1 -C ncursesw-build DESTDIR="$pkgdir" install.libs rm -r "$pkgdir"/usr/lib/*.a "$pkgdir"/usr/lib/*.so \ - "$pkgdir"/usr/include "$pkgdir"/usr/bin || return 1 + "$pkgdir"/usr/include "$pkgdir"/usr/bin } widec() { |