diff options
Diffstat (limited to 'python-hat-util')
| -rw-r--r-- | python-hat-util/.gitignore | 4 | ||||
| -rw-r--r-- | python-hat-util/PKGBUILD | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/python-hat-util/.gitignore b/python-hat-util/.gitignore new file mode 100644 index 0000000..f081a0e --- /dev/null +++ b/python-hat-util/.gitignore @@ -0,0 +1,4 @@ +/pkg +/python-hat-util-*.pkg.tar.* +/src +/v*.tar.gz diff --git a/python-hat-util/PKGBUILD b/python-hat-util/PKGBUILD new file mode 100644 index 0000000..1301279 --- /dev/null +++ b/python-hat-util/PKGBUILD @@ -0,0 +1,23 @@ +_name=hat-util +pkgname=python-$_name +pkgver=0.6.7 +pkgrel=1 +pkgdesc="Hat utility library" +url="https://github.com/hat-open/hat-util" +license=('Apache') +arch=('any') +depends=('python') +makedepends=('python-hat-doit' 'python-installer') +source=("https://github.com/hat-open/hat-util/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('d80a3c10f0336d588630bf3adf6de5360e848a0698bc6414923e94e5c4b8b3b9') + +build() { + cd "$srcdir/$_name-$pkgver" + python -m doit build_py +} + +package() { + cd "$srcdir/$_name-$pkgver" + python -m installer --destdir="$pkgdir" build/py/dist/*.whl + install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |
