[arch-commits] Commit in tldr/repos (2 files)
Brett Cornwall
ainola at gemini.archlinux.org
Tue Feb 22 05:12:12 UTC 2022
Date: Tuesday, February 22, 2022 @ 05:12:11
Author: ainola
Revision: 1135709
archrelease: copy trunk to community-testing-any
Added:
tldr/repos/community-testing-any/
tldr/repos/community-testing-any/PKGBUILD
(from rev 1135708, tldr/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: tldr/repos/community-testing-any/PKGBUILD (from rev 1135708, tldr/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-02-22 05:12:11 UTC (rev 1135709)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+
+pkgname=tldr
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Command line client for tldr, a collection of simplified and community-driven man pages."
+arch=('any')
+url="https://github.com/tldr-pages/tldr-python-client"
+license=('MIT')
+depends=('python-shtab' 'python-colorama' 'python-termcolor')
+makedepends=('python-setuptools' 'python-sphinx-argparse')
+checkdepends=('python-pytest')
+source=("https://github.com/tldr-pages/tldr-python-client/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('53796b789e325dcab7f49df2b304fcc2e4163254927c1ade29914f33fe41f54f4fed36d89fce5d6d1eba5266f2e709e12da6602aeac32e45b5c527906a10cd99')
+
+build() {
+ cd tldr-python-client-$pkgver
+ python setup.py build
+ make -C docs
+}
+
+check() {
+ cd tldr-python-client-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd tldr-python-client-$pkgver
+ python setup.py install -O1 --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list