summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff537aac965123853c13b0e3f931fa2dfa69c779 (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
# Maintainer: Stefan Gehr <stefan@gehr.xyz>

_name=sty
pkgname=python-${_name}
pkgver=1.0.5
pkgrel=1
pkgdesc="String styling for your terminal"
arch=(any)
url="https://sty.mewo.dev/"
license=(Apache-2.0)
depends=(python)
makedepends=(python-build python-installer python-wheel python-poetry)
source=($pkgname-$pkgver.tar.gz::"https://github.com/feluxe/sty/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=("99c3c75111395b26a7d0904cdbe8244363cc65f05e788b6470c45f7033f39a3ad5ab15e8ab3db92bde34f9c76ba78fbca61c2aee18f1f8cf1f7d17bb3c0b2a9c")

build() {
	cd $_name-$pkgver
	python -m build --wheel --no-isolation
}

package(){
	cd $_name-$pkgver
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}