mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 09:15:30 +03:00
https://github.com/tldr-pages/tldr-python-client Command line client for tldr, a collection of simplified and community-driven man pages
32 lines
1 KiB
Text
32 lines
1 KiB
Text
# Maintainer: Keith Toh <ktprograms@gmail.com>
|
|
pkgname=tldr-python-client
|
|
pkgver=3.0.0
|
|
pkgrel=0
|
|
pkgdesc="Command line client for tldr, a collection of simplified and community-driven man pages"
|
|
url="https://github.com/tldr-pages/tldr-python-client"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-shtab py3-colorama py3-termcolor"
|
|
makedepends="py3-setuptools py3-sphinx py3-sphinx-argparse"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tldr-pages/tldr-python-client/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
build() {
|
|
make -C docs/ man
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# test_error_message needs network access
|
|
pytest -v -k "not test_error_message"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
34d7698960e45b837e40e3208642fdd93e4a4214f16d8f58b0f5dd7c9ffa17eb19e1cf92d7af406189bb91ed1356b6215667d06814a406dba0e773be1837131e tldr-python-client-3.0.0.tar.gz
|
|
"
|