pkgname=gettext pkgver=0.23 pkgrel=1 pkgdesc="GNU internationalization library" arch=('x86_64') url="https://www.gnu.org/software/gettext/" license=('GPL-2.0-only' 'LGPL-2.0-only' 'GFDL-1.2-only' 'GPL-2.0-or-later') groups=('base' 'base-devel') depends=('acl' 'bash' 'gcc-libs' 'libunistring' 'libxml2') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(bf31a9b6bdf3e364669c7bd9858f97e4a0c408a8d22940c5d4ab638b65460f85) prepare() { cd ${pkgname}-${pkgver} sed -e '/^structured/s/xmlError \*/typeof(xmlCtxtGetLastError(NULL)) /' \ -i gettext-tools/src/its.c } build() { cd ${pkgname}-${pkgver} local configure_args=( --disable-static --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install chmod -v 0755 ${pkgdir}/usr/lib64/preloadable_libintl.so }