aboutsummaryrefslogtreecommitdiffstats
path: root/main/libre2
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-07-01 00:47:54 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-07-01 00:48:48 +0200
commit4a2731dcafae6eaadf6dda24ccfdf11fd913b481 (patch)
tree9831972b18c6c93243ccb83f55021129854e3480 /main/libre2
parentf0dc8faca7ff61c5c4400eb4caf9594ee941bf3a (diff)
downloadaports-4a2731dcafae6eaadf6dda24ccfdf11fd913b481.tar.bz2
aports-4a2731dcafae6eaadf6dda24ccfdf11fd913b481.tar.xz
testing/libre2: move to main
Diffstat (limited to 'main/libre2')
-rw-r--r--main/libre2/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/libre2/APKBUILD b/main/libre2/APKBUILD
new file mode 100644
index 0000000000..95d4522d9b
--- /dev/null
+++ b/main/libre2/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=libre2
+_pkgname=re2
+pkgver=20140304
+pkgrel=1
+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://re2.googlecode.com/files/$_pkgname-$pkgver.tgz"
+
+_builddir="$srcdir"/$_pkgname
+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="e82a6491efdf2bc928dc3779abcb3bc8 re2-20140304.tgz"
+sha256sums="0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7 re2-20140304.tgz"
+sha512sums="a426e8d69d2c7614087990180539c5b1aa2c544dee14b144098f810b76b6062d7de9efaf1e90e83c61c8e4382a066201862d09965f1a6a9f86e2912011ad9d40 re2-20140304.tgz"