1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/tldr-python-client/APKBUILD
ktprograms b9c13ccfd4 testing/tldr-python-client: new aport
https://github.com/tldr-pages/tldr-python-client
Command line client for tldr, a collection of simplified and community-driven man pages
2021-12-25 14:22:33 +00:00

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
"