2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer:
|
|
|
|
|
|
|
|
pkgname=gettext
|
2023-11-20 22:47:43 +01:00
|
|
|
pkgver=0.22.4
|
2023-07-02 18:39:47 +02:00
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="GNU internationalization library"
|
|
|
|
url="https://www.gnu.org/software/gettext/"
|
|
|
|
arch=(x86_64)
|
2023-10-05 20:34:40 +02:00
|
|
|
license=('GPL-2.0-only' 'LGPL-2.0-only' 'GFDL-1.2-only' 'GPL-2.0-or-later')
|
2023-04-01 11:22:02 +02:00
|
|
|
depends=(gcc-libs acl sh libunistring libxml2)
|
|
|
|
makedepends=(gettext emacs git)
|
2022-03-20 13:19:37 +01:00
|
|
|
optdepends=('git: for autopoint infrastructure updates')
|
|
|
|
options=(!docs)
|
|
|
|
source=(https://ftp.gnu.org/pub/gnu/gettext/$pkgname-$pkgver.tar.gz{,.sig}
|
2023-07-02 18:39:47 +02:00
|
|
|
gettext-0.22-disable-libtextstyle.patch)
|
2023-11-20 22:47:43 +01:00
|
|
|
sha256sums=('c1e0bb2a4427a9024390c662cd532d664c4b36b8ff444ed5e54b115fdb7a1aea'
|
2022-03-20 13:19:37 +01:00
|
|
|
'SKIP'
|
2023-09-21 17:21:33 +02:00
|
|
|
'a28a27192f336f0b0908bdbf840d3b19d7b587c4ac52cad635cb43e95eb3c78d')
|
2022-03-20 13:19:37 +01:00
|
|
|
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871' # Daiki Ueno
|
|
|
|
'68D94D8AAEEAD48AE7DC5B904F494A942E4616C2'
|
|
|
|
'9001B85AF9E1B83DF1BDA942F5BE8B267C6A406D') # Bruno Haible (Open Source Development)
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
|
|
|
# Do not build libtextstyle, as it depends on libcroco
|
|
|
|
# which is now unmaintained and has known security bugs.
|
|
|
|
# patch from Fedora
|
2023-09-21 17:21:33 +02:00
|
|
|
patch -p1 -i $srcdir/gettext-0.22-disable-libtextstyle.patch
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2023-09-21 17:21:33 +02:00
|
|
|
LTOFLAGS=""
|
2022-03-20 13:19:37 +01:00
|
|
|
autoreconf --force
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-csharp \
|
|
|
|
--enable-nls \
|
|
|
|
--with-xz \
|
|
|
|
--without-included-gettext
|
|
|
|
|
|
|
|
sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' \
|
|
|
|
-i gettext-{tools,runtime,runtime/libasprintf}/libtool
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|