summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 974a2ab7f24d93b3f818a0bd01470ac1c48cf708 (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
# Maintainer: Polyfish0 <igamblenull@gmail.com>
pkgname="python-pytermgui-git"
pkgdesc="Easy building of TUIs in Python"
source=("python-pytermgui-git::git+https://github.com/bczsalba/pytermgui.git")
url="https://github.com/bczsalba/pytermgui"
provides=(python-pytermgui)
depends=("python>=3.7" ipython python-wcwidth python-typing_extensions python-yaml)
makedepends=(python-hatchling python-hatch-fancy-pypi-readme python-build python-installer python-wheel git)
optdepends=("python-pytest: for running tests")
arch=(any)
license=(MIT)
pkgver=v7.7.1.r3.ge6ef8b3
pkgrel=1
sha256sums=("SKIP")

build() {
    cd "$pkgname"
    python -m build --wheel --no-isolation
}

package() {
    cd "$pkgname"

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    python -m installer --destdir="$pkgdir" dist/*.whl
}

pkgver() {
  cd "$pkgname"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}