summaryrefslogtreecommitdiff
path: root/pcr/python-pywebdav3
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-27 11:32:55 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-27 11:33:40 +0100
commit352ad6e1e27d1f163c4acee263f4c0925cfb3ae2 (patch)
treeeb774d908dcf33a2b78d6998a4b2ed83f2164835 /pcr/python-pywebdav3
parentb29be84b1b8830c5153cfd89f21e754f634642b1 (diff)
downloadabslibre-352ad6e1e27d1f163c4acee263f4c0925cfb3ae2.tar.gz
abslibre-352ad6e1e27d1f163c4acee263f4c0925cfb3ae2.tar.bz2
abslibre-352ad6e1e27d1f163c4acee263f4c0925cfb3ae2.zip
pcr/python-pywebdav3: moved from python2-pywebdav and updated
Diffstat (limited to 'pcr/python-pywebdav3')
-rw-r--r--pcr/python-pywebdav3/PKGBUILD27
1 files changed, 27 insertions, 0 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