summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3a3a2c3da3d617b8883540bb3ba349ec10b088f (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: Egor Vorontsov <sdoregor@sdore.me>

_pkgbase=python-scurses
_gitname=Scurses
pkgname=${_pkgbase}-git
pkgver=2.r4.ged0c6ea
pkgrel=1
pkgdesc="Python curses-based TUI framework"
arch=('any')
url="https://apps.sdore.me/${_gitname}"
license=('LGPL3')
depends=('python-sutils')
provides=("${_pkgbase}")
conflicts=("${_pkgbase}")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_gitname}"

	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}"

	touch 'pyproject.toml'

	python -m build --wheel --no-isolation
}

package() {
	cd "${srcdir}"

	python -m installer --destdir="${pkgdir}" "dist/${_gitname}-"*.whl
}