aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/re2/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/re2/APKBUILD b/testing/re2/APKBUILD
new file mode 100644
index 0000000000..8ce8a58cc5
--- /dev/null
+++ b/testing/re2/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=re2
+pkgver=20170701
+_pkgver=${pkgver:0:4}-${pkgver:4:2}-${pkgver:6:2}
+pkgrel=0
+pkgdesc="A fast, safe, thread-friendly alternative to backtracking RE engines"
+url="https://github.com/google/re2"
+arch="all"
+license="BSD"
+subpackages="$pkgname-dev"
+source="$pkgname-$_pkgver.tar.gz::https://github.com/google/$pkgname/archive/$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$_pkgver"
+
+build() {
+ cd "$builddir"
+ make prefix=/usr
+}
+
+check() {
+ cd "$builddir"
+ make shared-test static-test
+}
+
+package() {
+ cd "$builddir"
+ make prefix=/usr DESTDIR="$pkgdir" install
+}
+
+sha512sums="b638a5adb27bcda792a4915922130ca7fed0df52fc5dba3e5258f0c744e2ff682e382e04ffdf77ddd49d6776100fd950dd6035bad89418053e08bcdd7bde65da re2-2017-07-01.tar.gz"