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