diff options
author | JustKidding | 2023-04-23 11:29:18 -0500 |
---|---|---|
committer | JustKidding | 2023-04-23 11:29:18 -0500 |
commit | b186fd9ae86aca6b9ad24320573a07a7c4cd934d (patch) | |
tree | 7acd8f61f88d35369f8fb17afc15804ede6e2d49 /PKGBUILD | |
parent | 5e8cad483f5d5d13953c1dea4e5e9ac4582a041e (diff) | |
download | aur-ncurses5-compat-libs.tar.gz |
upgpkg: ncurses5-compat-libs 6.4-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 29 insertions, 19 deletions
@@ -6,7 +6,7 @@ pkgname=ncurses5-compat-libs _pkgname=ncurses pkgver=6.4 -pkgrel=1 +pkgrel=2 pkgdesc='System V Release 4.0 curses emulation library, ABI 5' arch=(i686 x86_64) url='http://invisible-island.net/ncurses/ncurses.html' @@ -19,35 +19,45 @@ sha256sums=('6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159' 'SKIP') validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas Dickey +prepare() { + cp -r ${_pkgname}-${pkgver}{,-no-widec} +} + build() { - cd ${_pkgname}-${pkgver} - - ./configure \ - --prefix=/usr \ - --mandir=/usr/share/man \ - --with-shared \ - --with-normal \ - --without-debug \ - --without-ada \ - --enable-widec \ - --disable-pc-files \ - --with-cxx-binding \ - --with-cxx-shared \ - --with-versioned-syms \ + local configure_options=( + --prefix=/usr + --mandir=/usr/share/man + --with-shared + --with-normal + --without-debug + --without-ada + --disable-pc-files + --with-cxx-binding + --with-cxx-shared + --with-versioned-syms --with-abi-version=5 + ) + + cd "${srcdir}/${_pkgname}-${pkgver}" + + ./configure "${configure_options[@]}" --enable-widec + make + + cd "${srcdir}/${_pkgname}-${pkgver}-no-widec" + + ./configure "${configure_options[@]}" make } package() { - cd ${_pkgname}-${pkgver} + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="$pkgdir" install.libs + cd "${srcdir}/${_pkgname}-${pkgver}-no-widec" make DESTDIR="$pkgdir" install.libs install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" rm -rf "$pkgdir/usr/include/" "$pkgdir/usr/lib/pkgconfig" \ "$pkgdir"/usr/lib/*.so "$pkgdir"/usr/lib/*.a - for lib in ncurses ncurses++ form panel menu; do - ln -s /usr/lib/lib${lib}w.so.5 "$pkgdir/usr/lib/lib${lib}.so.5" - done ln -s /usr/lib/libncurses.so.5 "$pkgdir/usr/lib/libtinfo.so.5" ln -s /usr/lib/libncurses.so.5 "$pkgdir/usr/lib/libtic.so.5" } |