blob: 98c3ad2db77255555a0d7047f2385874a342c3a0 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-uni-curses
_name=unicurses
pkgver=3.1.2
pkgrel=1
pkgdesc="Unified Curses Wrapper for Python"
arch=('any')
url="https://github.com/unicurses/unicurses"
license=('GPL-3.0-or-later')
depends=('ncurses' 'python' 'python-x256')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v.$pkgver.tar.gz")
sha256sums=('306d63739bfb47032f9c9d7c6ac00eea08667b09559fbac49d57d55e4cb9f676')
prepare() {
cd "$_name-v.$pkgver"
# Don't package Windows binaries
sed -i '/package_data/d' setup.py
}
build() {
cd "$_name-v.$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-v.$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|