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

Allan McRae allan at archlinux.org
Sat Dec 5 17:27:23 UTC 2015


    Date: Saturday, December 5, 2015 @ 18:27:23
  Author: allan
Revision: 252491

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

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

-------------------------+
 staging-i686/PKGBUILD   |   51 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: protobuf/repos/staging-i686/PKGBUILD (from rev 252490, protobuf/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-12-05 17:27:23 UTC (rev 252491)
@@ -0,0 +1,51 @@
+# $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>
+
+pkgname=('protobuf' 'python2-protobuf')
+pkgver=2.6.1
+pkgrel=2
+pkgdesc="Protocol Buffers - Google's data interchange format"
+arch=('i686' 'x86_64')
+url='https://developers.google.com/protocol-buffers/'
+license=('BSD')
+depends=('gcc-libs' 'zlib')
+makedepends=('python2-setuptools')
+source=(https://github.com/google/protobuf/releases/download/v$pkgver/protobuf-$pkgver.tar.bz2)
+md5sums=('11aaac2d704eef8efd1867a807865d85')
+
+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 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  install -Dm644 editors/protobuf-mode.el \
+    "$pkgdir"/usr/share/emacs/site-lisp/protobuf-mode.el
+}
+
+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/$pkgname
+  ln -s /usr/share/licenses/$pkgbase/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
+}

Copied: protobuf/repos/staging-x86_64/PKGBUILD (from rev 252490, protobuf/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-12-05 17:27:23 UTC (rev 252491)
@@ -0,0 +1,51 @@
+# $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>
+
+pkgname=('protobuf' 'python2-protobuf')
+pkgver=2.6.1
+pkgrel=2
+pkgdesc="Protocol Buffers - Google's data interchange format"
+arch=('i686' 'x86_64')
+url='https://developers.google.com/protocol-buffers/'
+license=('BSD')
+depends=('gcc-libs' 'zlib')
+makedepends=('python2-setuptools')
+source=(https://github.com/google/protobuf/releases/download/v$pkgver/protobuf-$pkgver.tar.bz2)
+md5sums=('11aaac2d704eef8efd1867a807865d85')
+
+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 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  install -Dm644 editors/protobuf-mode.el \
+    "$pkgdir"/usr/share/emacs/site-lisp/protobuf-mode.el
+}
+
+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/$pkgname
+  ln -s /usr/share/licenses/$pkgbase/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list