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

Felix Yan felixonmars at archlinux.org
Thu Aug 16 13:33:37 UTC 2018


    Date: Thursday, August 16, 2018 @ 13:33:36
  Author: felixonmars
Revision: 371972

archrelease: copy trunk to community-any

Added:
  python2-pathlib2/repos/community-any/
  python2-pathlib2/repos/community-any/PKGBUILD
    (from rev 371971, python2-pathlib2/trunk/PKGBUILD)

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

Copied: python2-pathlib2/repos/community-any/PKGBUILD (from rev 371971, python2-pathlib2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-08-16 13:33:36 UTC (rev 371972)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-pathlib2
+pkgver=2.3.2
+pkgrel=1
+pkgdesc='Object-oriented filesystem paths'
+arch=('any')
+url='http://pypi.python.org/pypi/pathlib2'
+license=('MIT')
+depends=('python2-six' 'python2-scandir')
+makedepends=('python2-setuptools')
+checkdepends=('python2-pytest-runner' 'python2-mock')
+source=("https://pypi.io/packages/source/p/pathlib2/pathlib2-$pkgver.tar.gz")
+sha256sums=('8eb170f8d0d61825e09a95b38be068299ddeda82f35e96c3301a8a5e7604cb83')
+
+build() {
+  cd pathlib2-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd pathlib2-$pkgver
+  python2 setup.py pytest
+}
+
+package() {
+  cd pathlib2-$pkgver
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/python2-pathlib2/LICENSE.rst
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list