74 lines
2.2 KiB
Bash
74 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=gettext
|
|
pkgver=0.22.5
|
|
pkgrel=01 ## built with icu 74
|
|
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)
|
|
optdepends=('git: for autopoint infrastructure updates')
|
|
#options=(!docs)
|
|
source=(https://ftp.gnu.org/pub/gnu/gettext/$pkgname-$pkgver.tar.gz{,.sig}
|
|
gettext-0.22.2-disable-libtextstyle.patch)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
automake
|
|
# Do not build libtextstyle, as it depends on libcroco
|
|
# which is now unmaintained and has known security bugs.
|
|
# patch from Fedora
|
|
patch -p1 -i $srcdir/gettext-0.22.2-disable-libtextstyle.patch
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
# LTOFLAGS=""
|
|
# 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
|
|
depends=(gcc-libs acl sh libunistring libxml2)
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-2.0-only' 'LGPL-2.0-only' 'GFDL-1.2-only' 'GPL-2.0-or-later')
|
|
|
|
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
|
|
a28a27192f336f0b0908bdbf840d3b19d7b587c4ac52cad635cb43e95eb3c78d) # gettext-0.22.2-disable-libtextstyle.patch
|
|
|
|
## e75d48b6110788c050fcda91052dc7d4503618bf71b4c8a96051f5ce70312e67 gettext-0.22.5-01-x86_64.pkg.tar.lz
|
|
|