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

Filipe Laíns ffy00 at archlinux.org
Tue May 21 08:48:50 UTC 2019


    Date: Tuesday, May 21, 2019 @ 08:48:50
  Author: ffy00
Revision: 468171

archrelease: copy trunk to community-any

Added:
  python-pathlib2/repos/community-any/
  python-pathlib2/repos/community-any/PKGBUILD
    (from rev 468170, python-pathlib2/trunk/PKGBUILD)

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

Copied: python-pathlib2/repos/community-any/PKGBUILD (from rev 468170, python-pathlib2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-05-21 08:48:50 UTC (rev 468171)
@@ -0,0 +1,38 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pathlib2
+pkgname=python-$_pkgname
+pkgver=2.3.3
+pkgrel=1
+pkgdesc='Backport of pathlib aiming to support the full stdlib Python API.'
+arch=('any')
+url='https://github.com/mcmtroffaes/pathlib2'
+license=('MIT')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('c961ff6b5fd247de849e5c0170f9316d10ea5c37ac62841a31a261091ec6868eacd3a4fc35353d8eaa7b6ad88c5e25846c20bb568a3f6041621aab6d03c376a9')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm 644 LICENSE.rst "$pkgdir"/usr/share/licenses/python2-pathlib2/LICENSE.rst
+}
+
+# vim: ts=2 sw=2 et:
+



More information about the arch-commits mailing list