[arch-commits] Commit in tldr/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 17:12:44 UTC 2020
Date: Thursday, November 12, 2020 @ 17:12:44
Author: foutrelis
Revision: 752349
archrelease: copy trunk to community-staging-any
Added:
tldr/repos/community-staging-any/
tldr/repos/community-staging-any/PKGBUILD
(from rev 752348, tldr/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: tldr/repos/community-staging-any/PKGBUILD (from rev 752348, tldr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:12:44 UTC (rev 752349)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=tldr
+pkgver=1.1.0
+pkgrel=2
+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-argcomplete' 'python-colorama' 'python-setuptools' 'python-termcolor')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tldr-pages/tldr-python-client/archive/$pkgver.tar.gz")
+sha512sums=('bf697916b78360093970498b3ea8852b9e210a4ca39eb2bb95783687c619029e9bd9881fbbb29f5f4f5647489a4731d25045a97dfa93c32e05a8d0dd8bb9ea4f')
+
+build() {
+ cd tldr-python-client-$pkgver
+ python setup.py build
+}
+
+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/
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list