mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
protobuf 2.5.0, added python2-protobuf
This commit is contained in:
parent
5ef5802a48
commit
a8936e383e
@ -3,26 +3,38 @@
|
||||
#
|
||||
# Maintainer: abveritas@chakra-project.org
|
||||
|
||||
pkgname=protobuf
|
||||
pkgver=2.4.1
|
||||
pkgbase=protobuf
|
||||
pkgname=('protobuf' 'python2-protobuf')
|
||||
pkgver=2.5.0
|
||||
pkgrel=1
|
||||
pkgdesc="A way of encoding structured data in an efficient yet extensible format."
|
||||
pkgdesc="A way of encoding structured data in an efficient yet extensible format"
|
||||
arch=('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=('ed436802019c9e1f40cc750eaf78f318')
|
||||
md5sums=('a72001a9067a4c2c4e0e836d0f92ece4')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --disable-static
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --disable-static
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
package_protobuf() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
|
||||
package_python2-protobuf() {
|
||||
pkgdesc="protobuf python API"
|
||||
depends=("python2" "protobuf=${pkgver}")
|
||||
provides=("protobuf-python")
|
||||
conflicts=("protobuf-python")
|
||||
replaces=("protobuf-python")
|
||||
|
||||
cd $srcdir/protobuf-$pkgver/python
|
||||
python2 setup.py install --prefix=/usr --root $pkgdir
|
||||
}
|
Loading…
Reference in New Issue
Block a user