#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=gettext pkgver=0.22.3 pkgrel=01 pkgdesc="GNU internationalization library" url="https://www.gnu.org/software/gettext/" #depends=(gcc-libs acl sh glib2 libunistring libcroco) makedepends=(gettext emacs-git git) 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 # 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=(839a260b2314ba66274dae7d245ec19fce190a3aa67869bf31354cb558df42c7 # gettext-0.22.3.tar.gz 18fffe93702404cb4c5c5f2e0f128577d30b770cec89c810a2ce12eb464057e4 # gettext-0.22.3.tar.gz.sig a28a27192f336f0b0908bdbf840d3b19d7b587c4ac52cad635cb43e95eb3c78d) # gettext-0.22.2-disable-libtextstyle.patch ## 7b5444b267d99e06e07fe8bee8d0e735e2708a011366d5a33791dc4e780354e5 gettext-0.22.3-01-x86_64.pkg.tar.lz