Skip to content

Instantly share code, notes, and snippets.

@liujed
Last active January 5, 2018 23:17
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 liujed/8a9676fca8e3cbd5db6636984079b033 to your computer and use it in GitHub Desktop.
Save liujed/8a9676fca8e3cbd5db6636984079b033 to your computer and use it in GitHub Desktop.
python-thrift
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Jed Liu <jed-archlinux.org@uma.litech.org>
pkgbase=python-thrift
pkgname=(python-thrift python2-thrift)
_pkgname=thrift
pkgver=0.11.0
pkgrel=1
pkgdesc='Python bindings for the Apache Thrift RPC system'
arch=(i686 x86_64)
license=(Apache)
url='https://thrift.apache.org/'
makedepends=(python-setuptools python2-setuptools)
source=("https://github.com/apache/$_pkgname/archive/$pkgver.zip")
sha256sums=('c183e6337ae6d03a019c3581de71d3bd5c6fa92dfe1754398c402e3561d09f23')
prepare() {
cd "$srcdir"
cp -a thrift-${pkgver} thrift-py2-${pkgver}
}
package_python2-thrift() {
depends=(python2)
cd thrift-py2-$pkgver/lib/py
python2 setup.py install --root="$pkgdir" --optimize=1
}
package_python-thrift() {
depends=(python)
cd thrift-$pkgver/lib/py
python setup.py install --root="$pkgdir" --optimize=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment