diff options
author | Serkan Hosca | 2017-05-13 08:51:19 -0400 |
---|---|---|
committer | Serkan Hosca | 2017-05-13 08:51:19 -0400 |
commit | 30d2dc1956f066f14c637b34b87e121e431c1fb9 (patch) | |
tree | fb4e82fad31f930e0ec37f6f761481e85f57409b | |
download | aur-30d2dc1956f066f14c637b34b87e121e431c1fb9.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a1b5a210e9db --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-pathlib2 + pkgdesc = Object-oriented filesystem paths for python + pkgver = 2.2.1 + pkgrel = 1 + url = https://pypi.python.org/pypi/pathlib2/ + arch = any + license = MIT + makedepends = python + makedepends = python2 + source = https://pypi.io/packages/source/p/pathlib2/pathlib2-2.2.1.tar.gz + md5sums = 6c75bfde898b6c88627621a48ee8de14 + +pkgname = python-pathlib2 + pkgdesc = Python 3 client for pathlib2 + depends = python + +pkgname = python2-pathlib2 + pkgdesc = Python 2 client for pathlib2 + depends = python2 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6f72e81ab811 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +*.xz +*.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5d09bb2e1ff5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Contributor: Serkan Hosca <serkan@hosca.com> + +pypi_name=pathlib2 +pkgbase="python-$pypi_name" +pkgname=("python-$pypi_name" "python2-$pypi_name") +pkgver=2.2.1 +pkgrel=1 +pkgdesc="Object-oriented filesystem paths for python" +arch=('any') +license=('MIT') +url="https://pypi.python.org/pypi/pathlib2/" +makedepends=('python' 'python2') +source=("https://pypi.io/packages/source/p/${pypi_name}/${pypi_name}-${pkgver}.tar.gz") +md5sums=('6c75bfde898b6c88627621a48ee8de14') + +prepare() { + cp -a ${pypi_name}-${pkgver}{,-python2} +} + +build() { + cd "${srcdir}/${pypi_name}-${pkgver}" + python setup.py build + + cd "${srcdir}/${pypi_name}-${pkgver}-python2" + python2 setup.py build +} + +package_python-pathlib2() { + pkgdesc="Python 3 client for ${pypi_name}" + depends=('python' ) + + cd "${srcdir}/${pypi_name}-${pkgver}" + python setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}" --skip-build +} + +package_python2-pathlib2() { + pkgdesc="Python 2 client for ${pypi_name}" + depends=('python2' ) + + cd "${srcdir}/${pypi_name}-${pkgver}-python2" + python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}" --skip-build +} + +# vim: set ft=sh ts=4 sw=4 noet: |