Created
November 21, 2017 20:24
-
-
Save thrasibule/f7a3f022ad5ce65554ecce084f9e5dd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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