archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-phitigra / trunk / PKGBUILD
blobfe230dabf669d9fed412a52a3049823e4f45d4fa
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=python-phitigra
4 _pyname=${pkgname#python-}
5 pkgver=0.2.6
6 pkgrel=2
7 pkgdesc='A graph editor for SageMath/Jupyter'
8 url='https://github.com/jfraymond/phitigra'
9 arch=(any)
10 license=(MIT)
11 source=(https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz)
12 depends=(sagemath python-ipycanvas)
13 makedepends=(python-build python-installer python-wheel)
14 sha256sums=('36cdc745316b876a4f675212b9a994439d2d9a1b3b12c4e8cce4a149304a9ba0')
16 build() {
17   cd $_pyname-$pkgver
18   python -m build --wheel --no-isolation
21 package() {
22   cd $_pyname-$pkgver
23   python -m installer --destdir="$pkgdir" dist/*.whl
24   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname