archrelease: copy trunk to extra-x86_64
[arch-packages.git] / re2 / trunk / PKGBUILD
blob8a84ed4dc4288b0b072d73c62ef99e067c4b65d9
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=2021-11-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 source=(re2-$pkgver.tar.gz::https://github.com/google/re2/archive/$_re2ver.tar.gz)
17 sha256sums=('8c45f7fba029ab41f2a7e6545058d9eec94eef97ce70df58e92d85cfc08b4669')
19 build() {
20   cd $pkgname-$_re2ver
21   make
24 check() {
25   cd $pkgname-$_re2ver
26   make test
29 package() {
30   cd $pkgname-$_re2ver
31   make prefix=/usr DESTDIR="$pkgdir" install
32   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"