diff options
-rw-r--r-- | libre/ncurses-static/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libre/ncurses-static/PKGBUILD b/libre/ncurses-static/PKGBUILD new file mode 100644 index 000000000..f11ede9f0 --- /dev/null +++ b/libre/ncurses-static/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# based of ncurses + +_pkgname=ncurses +pkgname=ncurses-static +pkgver=6.0 +pkgrel=4 +pkgdesc='System V Release 4.0 curses emulation library (static libraries only)' +arch=('i686' 'x86_64' 'armv7h') +url='http://invisible-island.net/ncurses/ncurses.html' +license=('MIT') +depends=('gcc-libs-static' 'ncurses') +options=('staticlibs') +source=(ftp://invisible-island.net/ncurses/ncurses-${pkgver/_/-}.tar.gz{,.asc}) +md5sums=('ee13d052e1ead260d7c28071f46eefb1' + 'SKIP') +validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB') # Thomas Dickey + +build() { + cd $_pkgname-${pkgver/_/-} + + ./configure --prefix=/usr \ + --without-shared --with-normal --without-debug --without-ada \ + --enable-widec --enable-pc-files --with-cxx-binding --without-cxx-shared \ + --enable-ext-colors --enable-ext-mouse + make +} + +package() { + cd $_pkgname-${pkgver/_/-} + make DESTDIR="$pkgdir" install + + # fool packages looking to link to non-wide-character ncurses libraries + for lib in ncurses ncurses++ form panel menu; do + echo "INPUT(-l${lib}w)" > "$pkgdir"/usr/lib/lib${lib}.a + done + + # some packages look for -lcurses during build + echo "INPUT(-lncursesw)" > "$pkgdir"/usr/lib/libcursesw.a + ln -s libncurses.a "$pkgdir"/usr/lib/libcurses.a + + # remove conflicting files + rm -vr ${pkgdir}/usr/{bin,include,lib/{pkgconfig,terminfo},share} +} |