diff options
author | root <root@rshg047.dnsready.net> | 2011-07-12 14:14:44 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-12 14:14:44 +0000 |
commit | ec9bd2e246eb94181a9254dcb2de7ddc191bb8cc (patch) | |
tree | 2f7af52e79332c2dc24b2c28ac3fceb0cbda7f10 /community/protobuf | |
parent | e03f4b9bc9da3327de94bc58aa92ecb836c1580d (diff) |
Tue Jul 12 14:14:44 UTC 2011
Diffstat (limited to 'community/protobuf')
-rw-r--r-- | community/protobuf/PKGBUILD | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/community/protobuf/PKGBUILD b/community/protobuf/PKGBUILD index a91085f0b..8a5c3b2df 100644 --- a/community/protobuf/PKGBUILD +++ b/community/protobuf/PKGBUILD @@ -2,26 +2,36 @@ # Contributor: Geoffroy Carrier <geoffroy@archlinux.org> # Contributor: Daniel J Griffiths <ghost1227@archlinux.us> -pkgname=protobuf -pkgver=2.4.0a +pkgbase=protobuf +pkgname=('protobuf' 'protobuf-python') +pkgver=2.4.1 pkgrel=1 pkgdesc="A way of encoding structured data in an efficient yet extensible format" arch=('i686' 'x86_64') url="http://code.google.com/p/protobuf/" license=('APACHE') depends=('gcc-libs' 'zlib') +makedepends=('python2' 'setuptools') options=(!libtool) source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2) -md5sums=('61df3f63ec284fc6f57a68c67e4918c6') +md5sums=('ed436802019c9e1f40cc750eaf78f318') build() { cd $srcdir/$pkgname-$pkgver - ./autogen.sh - ./configure --prefix=/usr --disable-static + ./autogen.sh + ./configure --prefix=/usr --disable-static } -package() { +package_protobuf() { cd $srcdir/$pkgname-$pkgver - make DESTDIR=$pkgdir install } + +package_protobuf-python() { + pkgdesc="protobuf python API" +# arch=('any') + depends=("python2" "protobuf=${pkgver}") + + cd $srcdir/protobuf-$pkgver/python + python2 setup.py install --prefix=/usr --root $pkgdir +} |