From 1c4f9c82a4414b94ea3366dbdd10d6bb95532032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 21 Oct 2018 12:12:05 +0200 Subject: community/re2: rename from community/libre2 We usually don't prefix package names with `lib`. --- community/re2/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 community/re2/APKBUILD (limited to 'community/re2') diff --git a/community/re2/APKBUILD b/community/re2/APKBUILD new file mode 100644 index 0000000000..369c4d1637 --- /dev/null +++ b/community/re2/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=re2 +pkgver=2018.10.01 +_pkgver=${pkgver//./-} +pkgrel=0 +pkgdesc="Efficient, principled regular expression library" +url="https://github.com/google/re2" +arch="all" +license="BSD-3-Clause" +subpackages="$pkgname-dev $pkgname-doc" +provides="libre2" +source="https://github.com/google/$pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir"/$pkgname-$_pkgver + +build() { + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" prefix=/usr install + install -Dm644 LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +sha512sums="91e400856137d16c6319e310dab99b4baa74c0bcf634c97464fccdf4092ffc8e1d5ee2a6714b8114719e2dd92e962d5e970ce1b360a3644a8b395d8fb47431be 2018-10-01.tar.gz" -- cgit v1.2.3