From 4a2731dcafae6eaadf6dda24ccfdf11fd913b481 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 1 Jul 2015 00:47:54 +0200 Subject: testing/libre2: move to main --- main/libre2/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ testing/libre2/APKBUILD | 43 ------------------------------------------- 2 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 main/libre2/APKBUILD delete mode 100644 testing/libre2/APKBUILD 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 +# Maintainer: Francesco Colista +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" diff --git a/testing/libre2/APKBUILD b/testing/libre2/APKBUILD deleted file mode 100644 index b4ac3ba908..0000000000 --- a/testing/libre2/APKBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Contributor: Francesco Colista -# Maintainer: Francesco Colista -pkgname=libre2 -_pkgname=re2 -pkgver=20140304 -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" -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 - sed -i 's_prefix=/usr/local_prefix=/usr_' Makefile -} - -build() { - cd "$_builddir" - make -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" 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" -- cgit v1.2.3