Last active
February 28, 2018 08:45
-
-
Save cfstras/f8634870126cb5b84c76a30200c2b603 to your computer and use it in GitHub Desktop.
ncurses-6.0-9 stable PKGBUILD. Temporary downgrade to fix https://github.com/nsf/termbox-go/issues/185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase = ncurses | |
pkgdesc = System V Release 4.0 curses emulation library | |
pkgver = 6.0 | |
pkgrel = 0 | |
url = http://invisible-island.net/ncurses/ncurses.html | |
arch = i686 | |
arch = x86_64 | |
license = MIT | |
depends = glibc | |
depends = gcc-libs | |
provides = libncurses++w.so | |
provides = libformw.so | |
provides = libmenuw.so | |
provides = libpanelw.so | |
provides = libncursesw.so | |
source = https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz | |
source = https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz.sig | |
validpgpkeys = C52048C0C0748FEE227D47A2702353E0F7E48EDB | |
md5sums = ee13d052e1ead260d7c28071f46eefb1 | |
md5sums = SKIP | |
pkgname = ncurses | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> | |
# Contributor: Allan McRae <allan@archlinux.org> | |
# Contributor: judd <jvinet@zeroflux.org> | |
pkgname=ncurses | |
_pkgver=6.0 | |
pkgver=${_pkgver/-/+} | |
pkgrel=0 | |
pkgdesc='System V Release 4.0 curses emulation library' | |
arch=(i686 x86_64) | |
url='http://invisible-island.net/ncurses/ncurses.html' | |
license=(MIT) | |
depends=(glibc gcc-libs) | |
provides=(libncurses++w.so libformw.so libmenuw.so libpanelw.so libncursesw.so) | |
#source=(http://invisible-mirror.net/archives/ncurses/current/ncurses-${_pkgver}.tgz{,.asc}) | |
source=(https://ftp.gnu.org/pub/gnu/ncurses/ncurses-${_pkgver}.tar.gz{,.sig}) | |
md5sums=('ee13d052e1ead260d7c28071f46eefb1' | |
'SKIP') | |
validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB') # Thomas Dickey | |
build() { | |
cd $pkgname-${_pkgver} | |
./configure --prefix=/usr --mandir=/usr/share/man \ | |
--with-pkg-config-libdir=/usr/lib/pkgconfig \ | |
--with-shared --with-normal --without-debug --without-ada \ | |
--enable-widec --enable-pc-files --with-cxx-binding --with-cxx-shared \ | |
--with-termlib=tinfo --with-ticlib=tic | |
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}.so" | |
ln -s ${lib}w.pc "$pkgdir/usr/lib/pkgconfig/${lib}.pc" | |
done | |
# don't require -ltinfo when linking with --no-add-needed | |
rm -f "$pkgdir/usr/lib/libncursesw.so" | |
echo "INPUT(libncursesw.so.${pkgver:0:1} -ltinfo)" > "$pkgdir/usr/lib/libncursesw.so" | |
# some packages look for -lcurses during build | |
echo "INPUT(-lncursesw)" > "$pkgdir/usr/lib/libcursesw.so" | |
ln -s libncurses.so "$pkgdir/usr/lib/libcurses.so" | |
# install license, rip it from the readme | |
install -d "$pkgdir/usr/share/licenses/$pkgname" | |
grep -B 100 '$Id' README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment