summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebaeb75430372d17cd169147f06df348d482a3a1 (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
# Maintainer: Jakub Klinkovský <lahwaacz at archlinux dot org>

pkgname=python-hostlist
pkgdesc="Python module for handling LLNL hostlists"
pkgver=1.23.0
pkgrel=2
arch=(x86_64)
url="https://www.nsc.liu.se/~kent/python-hostlist/"
license=(GPL-2.0-or-later)
depends=(python)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("https://www.nsc.liu.se/~kent/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('9dbf4fa47920d451e352fde556570e60')

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

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

# vim:set ts=2 sw=2 et: