python3 version of pathlib

This commit is contained in:
Cedric Girard 2017-12-11 17:34:14 +01:00
commit 1d47dad0a3
2 changed files with 36 additions and 0 deletions

14
.SRCINFO Normal file
View File

@ -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

22
PKGBUILD Normal file
View File

@ -0,0 +1,22 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: vae77 <fernandogrd@yahoo.com.br>
_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"
}