summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e94911271b9b2d4a28409ecc8d771cebdfb17cba (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
# Maintainer: Jose Riha <jose 1711 gmail com>

pkgname=python-textual
pkgver=0.1.15
pkgrel=1
pkgdesc='TUI (Text User Interface) framework for Python inspired by modern web development.'
arch=(any)
url='https://github.com/willmcgugan/textual'
license=('MIT')
depends=('python-rich' 'python-pyfiglet')
makedepends=('python-pip' 'python-poetry')
source=("https://github.com/willmcgugan/textual/archive/v${pkgver}.tar.gz")
md5sums=('93f69fdf7f2d282820f9ea6be1d4ec7c')

build() {
  cd textual-${pkgver}
  poetry build --format wheel
}

package() {
  cd textual-${pkgver}
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}