[arch-commits] Commit in python-pathlib/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Apr 18 07:20:04 UTC 2015
Date: Saturday, April 18, 2015 @ 09:20:04
Author: fyan
Revision: 131609
archrelease: copy trunk to community-any
Added:
python-pathlib/repos/community-any/
python-pathlib/repos/community-any/PKGBUILD
(from rev 131608, python-pathlib/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-pathlib/repos/community-any/PKGBUILD (from rev 131608, python-pathlib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-04-18 07:20:04 UTC (rev 131609)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: vae77 <fernandogrd at yahoo.com.br>
+
+pkgbase=python-pathlib
+pkgname=(python-pathlib python2-pathlib)
+pkgver=1.0.1
+pkgrel=2
+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')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/p/pathlib/pathlib-${pkgver}.tar.gz")
+md5sums=('5099ed48be9b1ee29b31c82819240537')
+
+prepare() {
+ cp -a pathlib-$pkgver{,-py2}
+}
+
+package_python-pathlib() {
+ depends=('python')
+
+ cd "$srcdir/pathlib-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-pathlib() {
+ depends=('python2')
+
+ cd "$srcdir/pathlib-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
More information about the arch-commits
mailing list