From 1d47dad0a3b915c6ee3ef0d7c49fda8b75b92a7e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 11 Dec 2017 17:34:14 +0100 Subject: [PATCH] python3 version of pathlib --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..e1892e1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-pathlib + pkgdesc = This module offers a set of classes featuring all the common operations on paths in an easy, object-oriented way + pkgver = 1.0.1 + pkgrel = 1 + url = http://pathlib.readthedocs.org/en/1.0.1/ + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = https://pypi.io/packages/source/p/pathlib/pathlib-1.0.1.tar.gz + md5sums = 5099ed48be9b1ee29b31c82819240537 + +pkgname = python-pathlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6c03337 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Cedric Girard +# Contributor: Felix Yan +# Contributor: vae77 + +_pythonmod=pathlib +pkgname=python-pathlib +pkgver=1.0.1 +pkgrel=1 +pkgdesc="This module offers a set of classes featuring all the common operations on paths in an easy, object-oriented way" +arch=('any') +url="http://pathlib.readthedocs.org/en/${pkgver}/" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz") +md5sums=('5099ed48be9b1ee29b31c82819240537') + +package() { + cd "$srcdir/pathlib-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +}