summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd65fe84c38f7f263a973e2a76d57d74cb3dc903 (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
30
31
32
33
34
35
36
37
38
39
# Maintainer: Hu Butui <hot123tea123@gmail.com>

_pkgname=remi
pkgname=python-remi
pkgver=2022.7.27
pkgrel=3
pkgdesc='Cross-platform GUI library which renders in a web browser'
arch=('any')
url='https://github.com/dddomodossola/remi'
license=('Apache-2.0')
depends=(
  python
)
makedepends=(
  python-build
  python-installer
  python-setuptools
  python-wheel
)
optdepends=(
  'python-pywebview: for standalone app'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dddomodossola/remi/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('362375d60e4e460a88c9f2198a83ae7a6476a32987d2fc97154211be829331f5')

build() {
  cd "${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
  cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  rm -rf "${pkgdir}${site_packages}/test"
  install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
  mv -vf "examples" "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim:set ts=2 sw=2 et: