[arch-commits] Commit in python-treelib/repos (community-any community-any/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sun Feb 21 15:26:01 UTC 2021


    Date: Sunday, February 21, 2021 @ 15:26:01
  Author: ffy00
Revision: 867692

archrelease: copy trunk to community-any

Added:
  python-treelib/repos/community-any/
  python-treelib/repos/community-any/PKGBUILD
    (from rev 867691, python-treelib/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-treelib/repos/community-any/PKGBUILD (from rev 867691, python-treelib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-02-21 15:26:01 UTC (rev 867692)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=treelib
+pkgname=python-$_pkgname
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='An efficient implementation of tree data structure'
+arch=('any')
+url='https://github.com/caesar0301/treelib'
+license=('Apache2')
+depends=('python' 'python-future')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha512sums=('2b7007f759eefd8cdca0a43ca57e33bbfc3e832fc0a723386d369a9eae831af1270bb5d6c6a6b48178a9f7503a7acf702cfb7308cf74514930f589fe9b0a7a79')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list