Skip to content

Instantly share code, notes, and snippets.

@thrasibule
Created November 21, 2017 20:24
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 thrasibule/f7a3f022ad5ce65554ecce084f9e5dd9 to your computer and use it in GitHub Desktop.
Save thrasibule/f7a3f022ad5ce65554ecce084f9e5dd9 to your computer and use it in GitHub Desktop.
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgbase=python-thrift
pkgname=('python-thrift' 'python2-thrift')
_pkgname=thrift
pkgver=0.10.0
pkgrel=1
pkgdesc='Python bindings for the Apache Thrift RPC system'
arch=(i686 x86_64)
license=(Apache)
url='https://thrift.apache.org/'
makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip")
sha256sums=('a612a5189098d3d9dcc57c019faf0ea486b6b43e')
prepare() {
cd "$srcdir"
cp -a thrift-${pkgver} thrift-py2-${pkgver}
}
package_python2-thrift() {
cd thrift-py2-$pkgver
python2 setup.py install --root="$pkgdir" --optimize=1
}
package_python-thrift() {
cd thrift-$pkgver
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