mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-16 13:21:39 +01:00
73 lines
2.2 KiB
Plaintext
73 lines
2.2 KiB
Plaintext
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
pkgname=gettext
|
|
pkgver=0.21
|
|
pkgrel=0
|
|
pkgdesc="GNU locale utilities"
|
|
url="https://www.gnu.org/software/gettext/gettext.html"
|
|
arch="all"
|
|
license="GPL-3.0-or-later AND LGPL-2.1-or-later AND MIT"
|
|
# do _not_ add the optional dependencies on libcroco or glib
|
|
# they depend on gettext and would introduce cyclic dependencies
|
|
makedepends="perl ncurses-dev libxml2-dev libunistring-dev"
|
|
checkdepends="coreutils"
|
|
subpackages="$pkgname-dbg $pkgname-doc $pkgname-static $pkgname-dev
|
|
$pkgname-lang libintl $pkgname-asprintf $pkgname-libs"
|
|
source="https://ftp.gnu.org/gnu/gettext/gettext-$pkgver.tar.xz
|
|
skip-tests-musl.patch
|
|
musl-realpath.patch
|
|
"
|
|
|
|
# secfixes:
|
|
# 0.20.1-r0:
|
|
# - CVE-2018-18751
|
|
|
|
build() {
|
|
# force using system posix complaint printf
|
|
# the test is broken and fails with ash
|
|
gt_cv_func_printf_posix=yes \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-threads=posix \
|
|
--disable-java \
|
|
--enable-static
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# test-verify fails if run in parallel
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
static() {
|
|
pkgdesc="libintl static libraries"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
libintl() {
|
|
pkgdesc="GNU gettext runtime library"
|
|
license="LGPL-2.1-or-later"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libintl.so.* "$subpkgdir"/usr/lib
|
|
chmod +x "$subpkgdir"/usr/lib/libintl.so.*
|
|
}
|
|
|
|
asprintf() {
|
|
pkgdesc="GNU gettext asprintf library"
|
|
license="LGPL-2.1-or-later"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libasprintf.so.* "$subpkgdir"/usr/lib
|
|
}
|
|
|
|
sha512sums="f7e2968651879f8444d43a176a149db9f9411f4a03132a7f3b37c2ed97e3978ae6888169c995c1953cb78943b6e3573811abcbb8661b6631edbbe067b2699ddf gettext-0.21.tar.xz
|
|
9fae1898eaf7a871876d2eaeffdf6ab759455bc8062fc232992526d697752d864b6079eb3c1053aea08d3a41892008b201566564fa62275d0ced5cfa6088a4c0 skip-tests-musl.patch
|
|
593615f1d3a75e0fff1561b11e6363aacdc44045adf19c765e27360f256149e442643f40ef1ed781d4175e02dd9719871019e16b0c1393a124a8a87ef0cf75b0 musl-realpath.patch"
|