community/libre2: add check

This commit is contained in:
dai9ah 2018-03-03 12:40:41 +00:00 committed by Jakub Jirutka
parent 5911cfc975
commit 037b7eed5f

View File

@ -9,7 +9,6 @@ pkgdesc="Efficient, principled regular expression library"
url="https://github.com/google/re2"
arch="all"
license="BSD-3-Clause"
options="!check"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/google/$_pkgname/archive/$_pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$_pkgver
@ -19,6 +18,11 @@ build() {
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix=/usr install