diff options
author | Ivan Konovalov | 2018-08-23 13:51:23 +0500 |
---|---|---|
committer | Ivan Konovalov | 2018-08-23 13:57:30 +0500 |
commit | 8f88c3f372bc38bf5baf6603e11a75fc5e51bbad (patch) | |
tree | 9f31e2efaf0b907851db7a5cd9b17edf33002507 /PKGBUILD | |
download | aur-8f88c3f372bc38bf5baf6603e11a75fc5e51bbad.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..078529e7e0d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Ivan Konovalov <ivknv0@gmail.com> + +pkgname=python2-webdavclient +_name=${pkgname#python2-} +pkgver=1.0.8 +pkgrel=1 +pkgdesc="WebDAV API, resource API and wdc for WebDAV servers" +arch=("any") +url="https://github.com/CloudPolis/webdav-client-python" +license=("MIT") +depends=("python2>=2.6.0" "python2-pycurl" "python2-lxml" "python2-argcomplete") +makedepends=("python2-pip" "curl") +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-$pkgver.tar.gz") +sha256sums=("c4df5953822f87b48504fc0f4ecdb08ae6a518e67e96f9e8e27d841c0cd29d7a") + +package() { + PIP_CONFIG_FILE=/dev/null pip2 install --isolated --root="$pkgdir" --ignore-installed --no-deps *.tar.gz || exit + curl "https://raw.githubusercontent.com/CloudPolis/webdav-client-python/master/LICENSE.md" -o LICENSE.txt || exit + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" || exit + mv "$pkgdir/usr/bin/wdc" "$pkgdir/usr/bin/wdc2" +} |