diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-pywebdav3/PKGBUILD | 27 | ||||
-rw-r--r-- | pcr/python2-pywebdav/PKGBUILD | 24 |
2 files changed, 27 insertions, 24 deletions
diff --git a/pcr/python-pywebdav3/PKGBUILD b/pcr/python-pywebdav3/PKGBUILD new file mode 100644 index 000000000..75fd2492d --- /dev/null +++ b/pcr/python-pywebdav3/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> + +_pkgname=PyWebDAV3 +pkgname=(python{,2}-${_pkgname,,}) +pkgver=0.9.12 +pkgrel=1 +pkgdesc="WebDAV library including a standalone server for python" +arch=(any) +url=http://code.google.com/p/pywebdav/ +license=(GPL3) + +_depends=() +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +sha256sums=('866143ccc863283b3163b9022a15cd04aed8e736ac22204f3488d41944b7265e') + +_package() { + depends=("$1" "${_depends[@]/#/$1-}") + provides=("$1-pywebdav") + replaces=("$1-pywebdav") + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for _pkg in "${pkgname[@]}"; do + eval "package_$_pkg () { _package ${_pkg%%-*}; }" +done diff --git a/pcr/python2-pywebdav/PKGBUILD b/pcr/python2-pywebdav/PKGBUILD deleted file mode 100644 index 2ae7e3339..000000000 --- a/pcr/python2-pywebdav/PKGBUILD +++ /dev/null @@ -1,24 +0,0 @@ -# Maintainer (Arch): Bidossessi Sodonon -# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> - -pkgname=python2-pywebdav -_pkgname=PyWebDAV -pkgver=0.9.8 -pkgrel=5 -pkgdesc="WebDAV library including a standalone server for python" -url=http://code.google.com/p/pywebdav/ -arch=('any') -license=(GPL3) -provides=("$_pkgname") -depends=( - 'python2' - 'python2-setuptools' -) -source=("https://pypi.python.org/packages/source/P/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") -package() -{ - cd ${srcdir}/${_pkgname}-${pkgver} - # Force package data inclusion - python2 setup.py install --root="${pkgdir}" -} -md5sums=('2fd2aca0074f0d0ac2701c9c0cadb89e') |