diff options
author | Robert Labudda | 2023-10-14 10:05:37 +0200 |
---|---|---|
committer | Robert Labudda | 2023-10-14 10:05:37 +0200 |
commit | d868a41ee802583a6ad3159836291c629daff315 (patch) | |
tree | e125e8f073120df9a6c686dc2154e5d8ab64487c /PKGBUILD | |
download | aur-python-cursedspace.tar.gz |
cursedspace version 1.5.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd1f6ea88931 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Robert Labudda <contact+aur-pytodotxt@vonshednob.cc> +_pbasename='cursedspace' +pkgname="python-${_pbasename}" +pkgver='1.5.2' +pkgrel='1' +pkgdesc="A framework for TUI applications on the basis of curses" +url="https://codeberg.org/vonshednob/${_pbasename}/" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools' + 'python-docutils' + 'python-build' + 'python-installer' + 'python-wheel') +source=("https://files.pythonhosted.org/packages/source/${_pbasename::1}/${_pbasename}/${_pbasename}-${pkgver}.tar.gz") +sha256sums=('21043f80498db9a79d5ee1bb52229fd28ad8871a360601c8f9120ff9dadc2aec') + +build() { + cd "${_pbasename}-${pkgver}" + python -m build --wheel --no-isolation +} + +package() { + cd "${_pbasename}-${pkgver}" + + # install locally + python -m installer --destdir="${pkgdir}" dist/*.whl + + # license + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # ensure documentation is not installed + rm -rf "${pkgdir}/usr/share/doc/${_pbasename}/html" +} |