summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3337df1773da5669efb2f23019958f838a5bed10 (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
# Maintainer: Hasan Catalgol <hasancatalgol@gmail.com>

pkgname=python-hyperscript
pkgver=0.3.0
pkgrel=1
pkgdesc="Tiny hyperscript-style HTML builder for Python (provides the hyperscript 'h' helper)"
arch=('any')
url="https://pypi.org/project/hyperscript/"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/h/hyperscript/hyperscript-$pkgver.tar.gz")
sha256sums=('77e9372c09dbf0ec0e18515cd7e13a44cac7cbf800362a1eac26d9f8c4abe2a8')

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

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