summaryrefslogtreecommitdiff
path: root/system/sed/APKBUILD
blob: a9c8d7ad9184e9f4d93eb6cfdbe005ccf2eeea75 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=sed
pkgver=4.8
pkgrel=0
pkgdesc="GNU stream editor"
url="https://www.gnu.org/software/sed"
arch="all"
license="GPL-3.0+"
depends=""
makedepends="perl"
subpackages="$pkgname-doc $pkgname-lang"
install="$pkgname.post-deinstall"
source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz
	disable-mbrtowc-test.patch
	gnulib-tests-dont-require-gpg-passphrase.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/bin \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-i18n
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	rm -rf "$pkgdir"/usr/lib/charset.alias || true
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}

sha512sums="7de25d9bc2981c63321c2223f3fbcab61d7b0df4fcf7d4394b72400b91993e1288d8bf53948ed5fffcf5a98c75265726a68ad4fb98e1d571bf768603a108c1c8  sed-4.8.tar.xz
103ab7c87a920dcd73a95a5d93a722082ff48a782cd85f68f493abfb9c9acd52323ca368a4bd807d8435f4c26ae2e3d9ec00372959d4a1aa05c2583a931d64b8  disable-mbrtowc-test.patch
8dc38bbd731885c69e83d2ed45d5df28542d9401f196295871135aa157d48ac77f1f926afcaab3ee0098ab0eb6232efc4664060177c3bf109a3e673f5adf9b85  gnulib-tests-dont-require-gpg-passphrase.patch"