From 635fb0a54ab947adfaa4d7102e2e54680188385c Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 25 Apr 2014 14:20:18 +0000 Subject: main/protobuf: move to main --- main/protobuf/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++ testing/protobuf/APKBUILD | 55 ----------------------------------------------- 2 files changed, 55 insertions(+), 55 deletions(-) create mode 100644 main/protobuf/APKBUILD delete mode 100644 testing/protobuf/APKBUILD diff --git a/main/protobuf/APKBUILD b/main/protobuf/APKBUILD new file mode 100644 index 000000000..1a9d9a737 --- /dev/null +++ b/main/protobuf/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Natanael Copa +pkgname=protobuf +pkgver=2.5.0 +pkgrel=0 +pkgdesc="Library for extensible, efficient structure packing" +url="http://code.google.com/p/protobuf/" +arch="all" +license="BSD" +depends= +depends_dev="zlib-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://protobuf.googlecode.com/files/$pkgname-$pkgver.tar.bz2" + +_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" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 + make check || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la +} + +py() { + depends="python" + cd "$_builddir"/python + mkdir -p "$subpkgdir"/usr/lib/python2.6/site-packages/ + install -m644 google "$subpkgdir"/usr/lib/python2.6/site-packages +} + +md5sums="a72001a9067a4c2c4e0e836d0f92ece4 protobuf-2.5.0.tar.bz2" +sha256sums="13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" +sha512sums="5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee protobuf-2.5.0.tar.bz2" diff --git a/testing/protobuf/APKBUILD b/testing/protobuf/APKBUILD deleted file mode 100644 index 1a9d9a737..000000000 --- a/testing/protobuf/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Kiyoshi Aman -# Maintainer: Natanael Copa -pkgname=protobuf -pkgver=2.5.0 -pkgrel=0 -pkgdesc="Library for extensible, efficient structure packing" -url="http://code.google.com/p/protobuf/" -arch="all" -license="BSD" -depends= -depends_dev="zlib-dev" -makedepends="$depends_dev" -install="" -subpackages="$pkgname-dev" -source="http://protobuf.googlecode.com/files/$pkgname-$pkgver.tar.bz2" - -_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" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 - make check || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - rm "$pkgdir"/usr/lib/*.la -} - -py() { - depends="python" - cd "$_builddir"/python - mkdir -p "$subpkgdir"/usr/lib/python2.6/site-packages/ - install -m644 google "$subpkgdir"/usr/lib/python2.6/site-packages -} - -md5sums="a72001a9067a4c2c4e0e836d0f92ece4 protobuf-2.5.0.tar.bz2" -sha256sums="13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" -sha512sums="5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee protobuf-2.5.0.tar.bz2" -- cgit v1.2.3