blob: 84a9fb1a6e5c5bc5d099e1e307c170f07aa01a9d (
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=2016.02.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="15cca93727fcb8a7dc8bf5357c51375e 2016-02-01.tar.gz"
sha256sums="f246c43897ac341568a7460622138ec0dd8de9b6f5459686376fa23e9d8c1bb8 2016-02-01.tar.gz"
sha512sums="b15d731b428fb5418159c7ed99d8275808988c7931682d5f50a7235b941c168346a585eb17b3b05aa7fa427064aaf32a07b6cc6f10532e328a3f31020d264227 2016-02-01.tar.gz"
|