aboutsummaryrefslogtreecommitdiffstats
path: root/main/sed/APKBUILD
blob: 635a0cea0397588c895c5ff92f167d86a9c0f5c5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sed
pkgver=4.3
pkgrel=1
subpackages="$pkgname-doc"
pkgdesc="GNU stream editor"
url="http://www.gnu.org/software/sed"
arch="all"
license="GPL"
makedepends="perl !sed"
install="$pkgname.post-deinstall"
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz
	fix-reallocation-bug-when-matching-newlines.patch"

builddir="$srcdir/$pkgname-$pkgver"

build() { 
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/bin \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-i18n \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install \
		|| return 1

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

md5sums="1957fe58dffa4a4106c1f1d7cc8dee18  sed-4.3.tar.xz
281083d69fbdff0fc9f22e3056bb6eda  fix-reallocation-bug-when-matching-newlines.patch"
sha256sums="47c20d8841ce9e7b6ef8037768aac44bc2937fff1c265b291c824004d56bd0aa  sed-4.3.tar.xz
e8287c052fb36c900cd0bffbe7447563165ed2d4972b02a036adbc6db73e70c3  fix-reallocation-bug-when-matching-newlines.patch"
sha512sums="4d76a099cf7115763b79b45be5c96338750baa47e34c36075f714e022614397aa9240099d6d009e69aa4d06b6cfc14dcc0f8313442a1465f448b36fb6874a26d  sed-4.3.tar.xz
82cef9dacb65997877908c4f20f16d79a5dddd0c6965434a62bc0738be58466a5d278f8053f1027cd976d0395825cbe44dbf398153d950d2a43a3e2e66e46fea  fix-reallocation-bug-when-matching-newlines.patch"