1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
6 true && pkgname=('python2-py4j' 'python-py4j')
9 pkgdesc="Enables python programs to dynamically access arbitrary Java objects."
10 depends=('python' 'java-runtime=7')
11 makedepends=('python2')
14 url="http://sourceforge.net/projects/py4j"
15 md5sums=('6e9577f2c96c4e2e010b708c0c772a80')
16 source=($pkgbase-$pkgver.tar.gz::"http://pypi.python.org/packages/source/p/py4j/py4j-${pkgver}.tar.gz")
17 package_python2-py4j() {
18 depends=('python2' 'java-runtime=7')
19 install -d ${pkgdir}/usr/share/licenses/${pkgname}
21 cd ${pkgbase}-${pkgver}
22 install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/
23 python2 setup.py install --prefix=${pkgdir}/usr
24 cp -r doc ${pkgdir}/usr/share/licenses/${pkgname}/
26 package_python-py4j() {
27 install -d ${pkgdir}/usr/share/licenses/${pkgname}
29 cd ${pkgbase}-${pkgver}
30 install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/
31 python3 setup.py install --prefix=${pkgdir}/usr
32 cp -r doc ${pkgdir}/usr/share/licenses/${pkgname}/