blob: bd1f6ea88931660583d7de111c7394e718de72b7 (
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
27
28
29
30
31
32
33
34
35
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"
}
|