# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Alexandre Bique <bique.alexandre@gmail.com>
pkgname=re2
_re2ver=2024-04-01
pkgrel=1
epoch=1
pkgver=${_re2ver//-}
pkgdesc="Fast, safe, thread-friendly regular expression engine"
arch=('armv7h')
url="https://github.com/google/re2"
license=('BSD')
depends=('gcc-libs' 'abseil-cpp')
#checkdepends=('gtest')
provides=('libre2.so')
source=(re2-$pkgver.tar.gz::https://github.com/google/re2/archive/$_re2ver.tar.gz)
sha256sums=('3f6690c3393a613c3a0b566309cf04dc381d61470079b653afc47c67fb898198')
build() {
cd $pkgname-$_re2ver
make
}
#check() {
# cd $pkgname-$_re2ver
# make test
#}
package() {
cd $pkgname-$_re2ver
make prefix=/usr DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}