Skip to content

Instantly share code, notes, and snippets.

@StuntsPT
Created August 26, 2015 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StuntsPT/23dced2e0bccaa08a3e8 to your computer and use it in GitHub Desktop.
Save StuntsPT/23dced2e0bccaa08a3e8 to your computer and use it in GitHub Desktop.
PKGBUILD for python-protobuf
# Maintainer: Jerome Leclanche <jerome@leclan.ch>
_pkgname=protobuf
pkgname=python-$_pkgname
pkgver=3.0.0a3
pkgrel=3
pkgdesc="Python 3 bindings to Google Protocol Buffers"
arch=("any")
license=("BSD")
url="https://github.com/google/protobuf"
depends=("python")
makedepends=("python-setuptools")
source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=("b61622de5048415bfd3f2d812ad64606438ac9e25009ae84191405fe58e522c1")
build() {
cd "$srcdir/$_pkgname-$pkgver"
python ./setup.py build
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python ./setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
chmod +r $pkgdir/usr/lib/python3.4/site-packages/protobuf-$pkgver-py3.4.egg-info/*
}
@chappjc
Copy link

chappjc commented Oct 9, 2015

Thank you for this fix. I hope it gets updated in AUR soon. The problem was also breaking gevent,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment