aboutsummaryrefslogtreecommitdiffstats
path: root/community/libre2
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-03-10 23:30:19 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-03-10 23:54:45 +0100
commitf53dc6e19270cdc7d95e606eb8fb588f09edafee (patch)
tree6ef57edb468ec1ef700ddb9f9889b514f1944887 /community/libre2
parentb226a23935f5058e64dcc1ead41c565fbc3c6b49 (diff)
downloadaports-f53dc6e19270cdc7d95e606eb8fb588f09edafee.tar.bz2
aports-f53dc6e19270cdc7d95e606eb8fb588f09edafee.tar.xz
community/libre2: update to 2016.02.01 and move to community
Diffstat (limited to 'community/libre2')
-rw-r--r--community/libre2/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/libre2/APKBUILD b/community/libre2/APKBUILD
new file mode 100644
index 0000000000..84a9fb1a6e
--- /dev/null
+++ b/community/libre2/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=libre2
+_pkgname=re2
+pkgver=2016.02.01
+_pkgver=${pkgver//./-}
+pkgrel=0
+pkgdesc="an efficient, principled regular expression library"
+url="https://code.google.com/p/re2/"
+arch="all"
+license="custom"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/google/$_pkgname/archive/$_pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$_pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" prefix=/usr install || return 1
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
+}
+
+md5sums="15cca93727fcb8a7dc8bf5357c51375e 2016-02-01.tar.gz"
+sha256sums="f246c43897ac341568a7460622138ec0dd8de9b6f5459686376fa23e9d8c1bb8 2016-02-01.tar.gz"
+sha512sums="b15d731b428fb5418159c7ed99d8275808988c7931682d5f50a7235b941c168346a585eb17b3b05aa7fa427064aaf32a07b6cc6f10532e328a3f31020d264227 2016-02-01.tar.gz"