summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd9ed9a59328f1b8524cf86b474386c6397a2299 (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_name=guizero
pkgname=python-$_name
pkgver=1.5.0
pkgrel=1
pkgdesc='Python module to allow learners to easily create GUIs'
url='https://github.com/lawsie/guizero'
depends=(python-pillow tk)
makedepends=(python-build python-installer python-setuptools python-wheel)
license=(BSD)
arch=(any)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('421f8e6871d795064c1608f8277ae3d252e129f656ddc558b30f577bdc6267d1')

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

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  # install license file
  install -Dm644 license.txt -t "$pkgdir"/usr/share/licenses/$pkgname
  # install readme into docdir
  install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}