blob: 0acee57281098d4fb8a69d0a678f73badc41fa32 (
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
|
# $Id: PKGBUILD 113335 2014-06-18 14:57:49Z anatolik $
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Alexandre Bique <bique.alexandre@gmail.com>
pkgname=re2
pkgver=20140304
pkgrel=1
pkgdesc='C++ library for fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python'
url='http://code.google.com/p/re2/'
depends=(gcc-libs)
arch=(i686 x86_64)
license=(BSD)
source=(https://re2.googlecode.com/files/re2-$pkgver.tgz)
sha1sums=('f30dda8e530921b623c32aa58a5dabbe9157f6ca')
build() {
cd re2
LDFLAGS+=" -pthread"
make prefix=/usr
}
check() {
cd re2
LDFLAGS+=" -pthread"
make prefix=/usr test
}
package() {
cd re2
make prefix=/usr DESTDIR="$pkgdir" install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|