# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=libre2 _pkgname=re2 pkgver=2018.03.01 _pkgver=${pkgver//./-} pkgrel=0 pkgdesc="Efficient, principled regular expression library" url="https://github.com/google/re2" arch="all" license="BSD-3-Clause" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/google/$_pkgname/archive/$_pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$_pkgver build() { cd "$builddir" make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" prefix=/usr install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="a6bdb117efa80b3de4d2c07c54f7e8369c50fc66672978d77fc34ae79ea323d0bb513c0c150a8c4b7c7254959a10d32902c8925ba45e85804a7bedf561633378 2018-03-01.tar.gz"