diff options
author | Andrej Radović | 2024-05-18 16:57:09 +0200 |
---|---|---|
committer | Andrej Radović | 2024-05-18 16:57:09 +0200 |
commit | e8a8a7b28eeca65a09cde003e5e16a18b19601b1 (patch) | |
tree | cee290458ed187c9ebb1fc032fdc03824ecb2038 /PKGBUILD | |
download | aur-python-error-helper.tar.gz |
Added error helper
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b5e3ecf19a8b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Andrej Radović <r.andrej@gmail.com> +pkgname=python-error-helper +_name=${pkgname#python-} +pkgver=1.1 +pkgrel=1 +pkgdesc="minimalistic python module which helps you print colorful messages for CLI tools" +url="https://github.com/30350n/error_helper" +depends=( + 'python' +) +makedepends=(python-build python-installer python-wheel python-hatchling) +license=('MIT') +arch=('any') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") +sha256sums=('7753b3e7509373b7f525ced9b98da3bed09e3c3839c93405b061f00e5a7e67ab') + +build() { + cd "$srcdir/${_name//-/_}-$pkgver/${_name//-/_}" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/${_name//-/_}-$pkgver/${_name//-/_}" + python -m installer --destdir="$pkgdir" dist/*.whl +} |