jobcore/gettext/PKGBUILD

77 lines
2.2 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2024-08-22 17:58:58 +02:00
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
2022-03-20 13:19:37 +01:00
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gettext
pkgver=0.22.5
2024-09-09 00:27:59 +02:00
pkgrel=02
2022-03-20 13:19:37 +01:00
pkgdesc="GNU internationalization library"
url="https://www.gnu.org/software/gettext/"
#depends=(gcc-libs acl sh glib2 libunistring libcroco)
makedepends=(gettext emacs-git git dbus)
2022-03-20 13:19:37 +01:00
optdepends=('git: for autopoint infrastructure updates')
2022-10-10 23:18:04 +02:00
#options=(!docs)
2022-03-20 13:19:37 +01:00
source=(https://ftp.gnu.org/pub/gnu/gettext/$pkgname-$pkgver.tar.gz{,.sig}
2023-09-21 17:21:33 +02:00
gettext-0.22.2-disable-libtextstyle.patch)
2022-03-20 13:19:37 +01:00
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.2-disable-libtextstyle.patch
2024-09-09 00:27:59 +02:00
autoreconf -f
automake
2022-03-20 13:19:37 +01:00
}
build() {
cd $pkgname-$pkgver
# LTOFLAGS=""
# autoreconf --force
2022-03-20 13:19:37 +01:00
./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
2023-04-01 11:22:02 +02:00
depends=(gcc-libs acl sh libunistring libxml2)
2022-03-20 13:19:37 +01:00
make DESTDIR="$pkgdir" install
}
2023-03-15 00:04:08 +01:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
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')
2022-03-20 13:19:37 +01:00
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871' # Daiki Ueno
'68D94D8AAEEAD48AE7DC5B904F494A942E4616C2'
'9001B85AF9E1B83DF1BDA942F5BE8B267C6A406D') # Bruno Haible (Open Source Development)
sha256sums=(ec1705b1e969b83a9f073144ec806151db88127f5e40fe5a94cb6c8fa48996a0 # gettext-0.22.5.tar.gz
5829b36cdf582df81ca2ec0919b9a671f5cab7bb09adb23c96ada32e9b20168f # gettext-0.22.5.tar.gz.sig
2023-09-21 17:21:33 +02:00
a28a27192f336f0b0908bdbf840d3b19d7b587c4ac52cad635cb43e95eb3c78d) # gettext-0.22.2-disable-libtextstyle.patch
2022-10-10 23:18:04 +02:00
2024-09-09 00:27:59 +02:00
## 9801ed90b860f0e3dc2f9936408383c94a3957fff2569a63ad36b1170512d5d2 gettext-0.22.5-02-x86_64.pkg.tar.lz