[arch-commits] Commit in protobuf/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Fri Oct 3 20:31:00 UTC 2014


    Date: Friday, October 3, 2014 @ 22:31:00
  Author: bpiotrowski
Revision: 223824

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  protobuf/repos/staging-i686/
  protobuf/repos/staging-i686/PKGBUILD
    (from rev 223823, protobuf/trunk/PKGBUILD)
  protobuf/repos/staging-x86_64/
  protobuf/repos/staging-x86_64/PKGBUILD
    (from rev 223823, protobuf/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: protobuf/repos/staging-i686/PKGBUILD (from rev 223823, protobuf/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2014-10-03 20:31:00 UTC (rev 223824)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+# TODO: c++ bindings for python
+# TODO: propset
+# TODO: staging + todo
+
+pkgname=('protobuf' 'python2-protobuf')
+pkgver=2.6.0
+pkgrel=1
+pkgdesc="Protocol Buffers - Google's data interchange format"
+arch=('i686' 'x86_64')
+url='https://github.com/google/protobuf/'
+license=('BSD')
+depends=('gcc-libs' 'zlib')
+makedepends=('python2-setuptools')
+source=(https://protobuf.googlecode.com/svn/rc/protobuf-$pkgver.tar.gz)
+md5sums=('9959d86087e64524d7f91e7a5a6e4fd7')
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  make -C $pkgbase-$pkgver check
+}
+
+package_protobuf() {
+  cd $pkgbase-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-protobuf() {
+  pkgdesc='Python 2 bindings for Google Protocol Buffers'
+  depends=("python2" "protobuf=${pkgver}")
+  provides=("protobuf-python")
+  conflicts=("protobuf-python")
+  replaces=("protobuf-python")
+
+  cd $pkgbase-$pkgver/python
+  python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgbase
+  ln -s /usr/share/licenses/$pkgbase/LICENSE "$pkgdir"/usr/share/licenses/$pkgbase/
+}

Copied: protobuf/repos/staging-x86_64/PKGBUILD (from rev 223823, protobuf/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2014-10-03 20:31:00 UTC (rev 223824)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+# TODO: c++ bindings for python
+# TODO: propset
+# TODO: staging + todo
+
+pkgname=('protobuf' 'python2-protobuf')
+pkgver=2.6.0
+pkgrel=1
+pkgdesc="Protocol Buffers - Google's data interchange format"
+arch=('i686' 'x86_64')
+url='https://github.com/google/protobuf/'
+license=('BSD')
+depends=('gcc-libs' 'zlib')
+makedepends=('python2-setuptools')
+source=(https://protobuf.googlecode.com/svn/rc/protobuf-$pkgver.tar.gz)
+md5sums=('9959d86087e64524d7f91e7a5a6e4fd7')
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  make -C $pkgbase-$pkgver check
+}
+
+package_protobuf() {
+  cd $pkgbase-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-protobuf() {
+  pkgdesc='Python 2 bindings for Google Protocol Buffers'
+  depends=("python2" "protobuf=${pkgver}")
+  provides=("protobuf-python")
+  conflicts=("protobuf-python")
+  replaces=("protobuf-python")
+
+  cd $pkgbase-$pkgver/python
+  python2 setup.py install --prefix=/usr --root="$pkgdir"
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgbase
+  ln -s /usr/share/licenses/$pkgbase/LICENSE "$pkgdir"/usr/share/licenses/$pkgbase/
+}



More information about the arch-commits mailing list