diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-15 23:03:06 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-16 10:22:52 -0300 |
commit | 779710982a810154c29e91b14d0477ba416cf203 (patch) | |
tree | 4762bad9c0ee3b72ec75bb41b5609fcbf83680f8 | |
parent | 53e40a641da67d90754c02053fd8367eaaea27df (diff) | |
download | abslibre-779710982a810154c29e91b14d0477ba416cf203.tar.gz abslibre-779710982a810154c29e91b14d0477ba416cf203.tar.bz2 abslibre-779710982a810154c29e91b14d0477ba416cf203.zip |
ncurses-static: add new pkg to [libre]
-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} +} |