db-move: moved libdex from [staging] to [testing] (x86_64)
[arch-packages.git] / re2 / trunk / PKGBUILD
blobe4610626d3bdc7affca2c9cfbe06d0b253b14348
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
3 # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
4 # Contributor: Alexandre Bique <bique.alexandre@gmail.com>
6 pkgname=re2
7 _re2ver=2023-03-01
8 pkgrel=1
9 epoch=1
10 pkgver=${_re2ver//-}
11 pkgdesc="Fast, safe, thread-friendly regular expression engine"
12 arch=('x86_64')
13 url="https://github.com/google/re2"
14 license=('BSD')
15 depends=('gcc-libs')
16 provides=('libre2.so')
17 source=(re2-$pkgver.tar.gz::https://github.com/google/re2/archive/$_re2ver.tar.gz)
18 sha256sums=('7a9a4824958586980926a300b4717202485c4b4115ac031822e29aa4ef207e48')
20 build() {
21   cd $pkgname-$_re2ver
22   make
25 check() {
26   cd $pkgname-$_re2ver
27   make test
30 package() {
31   cd $pkgname-$_re2ver
32   make prefix=/usr DESTDIR="$pkgdir" install
33   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"