updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / py4j / PKGBUILD
blob59dad0b4ac67e94e642bc538d389e4fd71c439ed
1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
4 pkgbase="py4j"
5 pkgname="py4j"
6 true && pkgname=('python2-py4j' 'python-py4j')
7 pkgver=0.7
8 pkgrel=4
9 pkgdesc="Enables python programs to dynamically access arbitrary Java objects."
10 depends=('python' 'java-runtime=7')
11 makedepends=('python2')
12 arch=('any')
13 license=('bsd')
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}
20     pwd
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}
28     pwd
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}/