summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3c7986dadbfaac756245680c88aee37547ab9c5 (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
26
27
28
29
# Maintainer: Tommy Jerry Mairo <tjm@member.fsf.org>

_name=jep
pkgname=python-"$_name"
pkgver=4.1.1
pkgrel=1
pkgdesc="Java Embedded Python - Embeds CPython in Java through JNI"
arch=('any')
url="https://github.com/ninia/jep"
license=('ZLIB')
depends=('python-numpy>=1.7' 'java-environment' 'python>=3.5')
makedepends=('python-setuptools')
provides=('python-jep')
conflicts=('python-jep')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ninia/$_name/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')


build() {
  export JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/default}
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}