# $Id: PKGBUILD 113335 2014-06-18 14:57:49Z anatolik $ # Maintainer: Anatol Pomozov # Contributor: Gustavo Alvarez # Contributor: Alexandre Bique 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" }