aboutsummaryrefslogtreecommitdiffstats
path: root/main/grep/APKBUILD
blob: 27f172c47bfeeee903e5db8678098d45dc98765c (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
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=grep
pkgver=2.15
pkgrel=0
pkgdesc="Searches input files for lines containing a match to a specified pattern"
url="http://www.gnu.org/software/grep/grep.html"
arch="all"
license="GPL"
depends=
makedepends="pcre-dev"
install=
subpackages="$pkgname-doc"
source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"

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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--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="8cab8ca52bcae735af40278423c7c942  grep-2.15.tar.xz"
sha256sums="bf5a834e587974c8c64e71b35b9e75cd21c7ff253c0e7fbfb0a78be794965314  grep-2.15.tar.xz"
sha512sums="095b32f5948cdfdfb6af4a2661f780d676899c17617ceeee7b312666351551a49445e90060821bac7150f7fed646da47928efc0f30e1b9f1a96a7efa5f9c47c3  grep-2.15.tar.xz"