64 lines
2.5 KiB
Bash
64 lines
2.5 KiB
Bash
# Contributor: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
_pkgname=ncurses
|
|
pkgname=static-compat-$_pkgname
|
|
pkgver=6.4
|
|
pkgrel=1
|
|
pkgdesc='System V Release 4.0 curses emulation library'
|
|
arch=(x86_64)
|
|
url='https://invisible-island.net/ncurses/ncurses.html'
|
|
license=(MIT)
|
|
depends=(glibc gcc-libs-static-compat)
|
|
makedepends=(autoconf-archive static-compat-configure)
|
|
options=(staticlibs)
|
|
source=(
|
|
"https://invisible-mirror.net/archives/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc}
|
|
"${_pkgname}-6.3-libs.patch"
|
|
"${_pkgname}-6.3-pkgconfig.patch"
|
|
)
|
|
sha512sums=('1c2efff87a82a57e57b0c60023c87bae93f6718114c8f9dc010d4c21119a2f7576d0225dab5f0a227c2cfc6fb6bdbd62728e407f35fce5bf351bb50cf9e0fd34'
|
|
'SKIP'
|
|
'adb02b838c40f1e58a1b31c26d5cd0f2a1c43f3b6d68e839981764c0f6c905a9eb51dd36ff018628fdeb20747cc7467727d57135408ab4848259384077a52b28'
|
|
'2d2c0ec3c880e638ab4aa3dbff5e28e4cd233153e24816bd87e077f848aa3edd5114cd0f2a7f6e8869dd1861a2746e512886c18264ff1676927dcc320c5ef958')
|
|
b2sums=('47fd9c2d27f44fa9942552881a471e5067465dbace40bf68b28998dded0556127a1d8662b96de4de4fd76c1c8b98bdae796036553ab4b05ca9f160839d841ba3'
|
|
'SKIP'
|
|
'31bb10e82dd018a75e57252052650d9f0f5eb5e7e887118c2ea40032b11f59ec6aa4d9bae804c615cbecdf3382f3434e0c9e9e8440fdefe66a507be020b8965c'
|
|
'fb6cf606cf3db7f6b306272696a63bce83d52cfa91e850f9a7bdb9d3d8455a26943529a9cf79731dddc7f763c27211a9afab9c4c31dbb6d12fd720eb390eb0a3')
|
|
validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas Dickey <dickey@invisible-island.net>
|
|
|
|
prepare() {
|
|
cd $_pkgname-$pkgver
|
|
# do not link against test libraries
|
|
patch -Np1 -i ../"${_pkgname}-6.3-libs.patch"
|
|
# do not leak build-time LDFLAGS into the pkgconfig files:
|
|
# https://bugs.archlinux.org/task/68523
|
|
patch -Np1 -i ../"${_pkgname}-6.3-pkgconfig.patch"
|
|
# NOTE: can't run autoreconf because the autotools setup is custom and ancient
|
|
}
|
|
|
|
build() {
|
|
local configure_options=(
|
|
--enable-widec
|
|
--enable-pc-files
|
|
--with-cxx-binding
|
|
--with-versioned-syms
|
|
--with-xterm-kbs=del
|
|
--without-ada
|
|
)
|
|
|
|
cd $_pkgname-$pkgver
|
|
source static-compat-environment
|
|
static-compat-configure "${configure_options[@]}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
make DESTDIR="$pkgdir" install -C $_pkgname-$pkgver
|
|
rm -r "$pkgdir/$static_compat_prefix/share/man"
|
|
install -vDm 644 $_pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
}
|