summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a893e8a8afb7ccea2646d3f7cf6d9b05b71f2eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: isbest <icoderdev@outlook.com>

_pkgname=py4j
pkgname=python-${_pkgname}
pkgver=0.10.9.7
pkgrel=3
pkgdesc="Enables Python programs to dynamically access arbitrary Java objects"
arch=('any')
url="https://www.py4j.org"
license=('BSD')
depends=('java-runtime' 'python')
makedepends=('python-setuptools')
source=("https://pypi.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('0b6e5315bb3ada5cf62ac651d107bb2ebc02def3dee9d9548e3baac644ea8dbb')

build() {
    cd "${_pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${_pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}