Fix PKGBUILD as with 64-bit version

Manually, the PKGBUILD differs a bit.
ledoian
LEdoian 7 months ago
parent ac08253832
commit 34af643e54

@ -4,35 +4,36 @@
_name=ncurses _name=ncurses
pkgname=lib32-${_name} pkgname=lib32-${_name}
pkgver=6.4_20230520 pkgver=6.5
pkgrel=1 pkgrel=1
pkgdesc="System V Release 4.0 curses emulation library (32-bit)" pkgdesc='System V Release 4.0 curses emulation library (32-bit)'
arch=(x86_64) arch=(x86_64)
url=https://invisible-island.net/ncurses/ncurses.html url='https://invisible-island.net/ncurses/ncurses.html'
license=(MIT) license=(MIT)
depends=(lib32-gcc-libs lib32-glibc $_name=$pkgver) depends=(lib32-gcc-libs lib32-glibc $_name=$pkgver)
provides=(libncurses++w.so libformw.so libmenuw.so libpanelw.so libncursesw.so) provides=(libncurses++w.so libformw.so libmenuw.so libpanelw.so libncursesw.so)
source=( source=(
https://invisible-mirror.net/archives/$_name/$_name-${pkgver/_/-}.tgz{,.asc} $_name::https://invisible-island.net/archives/${_name}/${_name}-${pkgver}.tar.gz
$_name.asc::https://invisible-island.net/archives/${_name}/${_name}-${pkgver}.tar.gz.asc
$_name-6.3-libs.patch $_name-6.3-libs.patch
$_name-6.3-pkgconfig.patch $_name-6.3-pkgconfig.patch
) )
sha512sums=('bbb1dd33f4c701165b7612657a7577d3175b94c5815a89eaab3a8774510feb9322d284896dba8d3896f6dd89a8b98031829a76f7e3397aebb6cf2a71e989f93c' sha512sums=('fc5a13409d2a530a1325776dcce3a99127ddc2c03999cfeb0065d0eee2d68456274fb1c7b3cc99c1937bc657d0e7fca97016e147f93c7821b5a4a6837db821e8'
'SKIP' '96a9cb7b3e8a0c4d058129d4aadbc4388b4f022eee6605cca8d270f31c54d1f06429a7c1af09e7de13f2bfeee71fc33d9581b0773830914c8a431be7e7f0e6ba'
'adb02b838c40f1e58a1b31c26d5cd0f2a1c43f3b6d68e839981764c0f6c905a9eb51dd36ff018628fdeb20747cc7467727d57135408ab4848259384077a52b28' 'adb02b838c40f1e58a1b31c26d5cd0f2a1c43f3b6d68e839981764c0f6c905a9eb51dd36ff018628fdeb20747cc7467727d57135408ab4848259384077a52b28'
'2d2c0ec3c880e638ab4aa3dbff5e28e4cd233153e24816bd87e077f848aa3edd5114cd0f2a7f6e8869dd1861a2746e512886c18264ff1676927dcc320c5ef958') '2d2c0ec3c880e638ab4aa3dbff5e28e4cd233153e24816bd87e077f848aa3edd5114cd0f2a7f6e8869dd1861a2746e512886c18264ff1676927dcc320c5ef958')
b2sums=('d5e88198140ab6471a36bef08685e17ac2e43b4e66b53abaa961d5f8912eb3eae3784db194436c2b3e5f2deaeefaaed93e0550bcab0456f1486fc35d0cdac440' b2sums=('d0a05c218b5f320ba9abe2f322787baef1d15d764e503c81d49772b54b2927d28ecbeb500c8e514996226b41f69445b4de44ff423cec25b61847307fe61682ec'
'SKIP' '079233fb8f52ec596182b69d9a44dd59982d4925715c817d21b5d2f4fc9ef7aa4c9ac2b4e14694ac177e49913a75f46e914fec64136620c5be891ee8c2c1710d'
'31bb10e82dd018a75e57252052650d9f0f5eb5e7e887118c2ea40032b11f59ec6aa4d9bae804c615cbecdf3382f3434e0c9e9e8440fdefe66a507be020b8965c' '31bb10e82dd018a75e57252052650d9f0f5eb5e7e887118c2ea40032b11f59ec6aa4d9bae804c615cbecdf3382f3434e0c9e9e8440fdefe66a507be020b8965c'
'fb6cf606cf3db7f6b306272696a63bce83d52cfa91e850f9a7bdb9d3d8455a26943529a9cf79731dddc7f763c27211a9afab9c4c31dbb6d12fd720eb390eb0a3') 'fb6cf606cf3db7f6b306272696a63bce83d52cfa91e850f9a7bdb9d3d8455a26943529a9cf79731dddc7f763c27211a9afab9c4c31dbb6d12fd720eb390eb0a3')
validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas Dickey <dickey@invisible-island.net> validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas Dickey <dickey@invisible-island.net>
prepare() { prepare() {
# do not link against test libraries # do not link against test libraries
patch -Np1 -d $_name-${pkgver/_/-} -i ../$_name-6.3-libs.patch patch -Np1 -d $_name-${pkgver} -i ../$_name-6.3-libs.patch
# do not leak build-time LDFLAGS into the pkgconfig files: # do not leak build-time LDFLAGS into the pkgconfig files:
# https://bugs.archlinux.org/task/68523 # https://bugs.archlinux.org/task/68523
patch -Np1 -d $_name-${pkgver/_/-} -i ../$_name-6.3-pkgconfig.patch patch -Np1 -d $_name-${pkgver} -i ../$_name-6.3-pkgconfig.patch
# NOTE: can't run autoreconf because the autotools setup is custom and ancient # NOTE: can't run autoreconf because the autotools setup is custom and ancient
} }
@ -64,16 +65,16 @@ build() {
export CXX="g++ -m32" export CXX="g++ -m32"
export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig' export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig'
cd $_name-${pkgver/_/-} cd $_name-${pkgver}
./configure "${configure_options[@]}" ./configure "${configure_options[@]}"
make make
} }
package() { package() {
local _pkgver=${pkgver/_*/} local _pkgver=${pkgver/_*/}
make DESTDIR="$pkgdir" install -C $_name-${pkgver/_/-} make DESTDIR="$pkgdir" install -C $_name-${pkgver}
install -vDm 644 $_name-${pkgver/_/-}/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" install -vDm 644 $_name-${pkgver}/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
# fool packages looking to link to non-wide-character ncurses libraries # fool packages looking to link to non-wide-character ncurses libraries
for lib in ncurses ncurses++ form panel menu; do for lib in ncurses ncurses++ form panel menu; do

Loading…
Cancel
Save