blob: a6f690d55b3e6cfb0e84f6f5dec53e6d882e3be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: TBK <alpine@jjtc.eu>
pkgname=gawk
pkgver=5.1.0
pkgrel=0
pkgdesc="GNU awk pattern-matching language"
url="https://www.gnu.org/software/gawk/gawk.html"
arch="all"
license="GPL-3.0-or-later"
checkdepends="coreutils diffutils"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/gawk/gawk-$pkgver.tar.xz
echild-strerror.patch"
case "$CARCH" in
# TODO: sigpipe1 test fails
# See: https://lists.gnu.org/archive/html/bug-gawk/2021-02/msg00005.html
s390x) options="!check" ;; # sigpipe1 test fails
esac
prepare() {
default_prepare
# TODO: https://lists.gnu.org/archive/html/bug-gawk/2021-02/msg00005.html
sed -i test/Makefile.in -e "/clos1way6/d"
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-nls
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="971e6a7617eb051d587984f64be2ff830e49eb60721c3401e8944401e3c3a7cd3334f0334b6e28bfc9283aaff15d83b0933f1fd77b0f8c7059068fa3f94c3cb4 gawk-5.1.0.tar.xz
5bbb175da2d93c9c1d422a4e5a2c2400486c0204929ac6771bf2c2effbee37b84ef9441821a47e1fdc4a337e3cb8ad92cb67d473822876ea790dd373822d4dbd echild-strerror.patch"
|