aboutsummaryrefslogtreecommitdiffstats
path: root/main/libre2/APKBUILD
blob: bc3d3a078546399fccbf2f35eaffadbe1b44e492 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libre2
_pkgname=re2
pkgver=2015.07.01
_pkgver=${pkgver//./-}
pkgrel=0
pkgdesc="an efficient, principled regular expression library"
url="https://code.google.com/p/re2/"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/google/$_pkgname/archive/$_pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$_pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=/usr install || return 1
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
}

md5sums="f5e20606bf49fe0678047599bba48e72  2015-07-01.tar.gz"
sha256sums="e32d6dfa48d882a81086ae26537dc2e78877bb427f61c8cd4062dff7d0b0ef08  2015-07-01.tar.gz"
sha512sums="f6de61800ed2e4a051c72ac3f9feca95f1942ffe383cf5f8b5ee3972e6dd2a5984718c8b2f20b8cf8598909498cb804a8a2ad5bf048dc177c8f6216921f5d813  2015-07-01.tar.gz"