diff options
author | Jonathan Queiroz | 2017-04-16 04:35:13 -0300 |
---|---|---|
committer | Jonathan Queiroz | 2017-04-16 04:35:13 -0300 |
commit | 113d01472878a6600aaef4c74a6d22e9dee968e1 (patch) | |
tree | 8938fd77544bdd0da04f2f84c6408afd0b108f8b | |
download | aur-113d01472878a6600aaef4c74a6d22e9dee968e1.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ff949ca3b04c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-pcloudapi-git + pkgdesc = A python3 library for accessing the pcloud.com API + pkgver = v0.0.2.r0.gc303afe + pkgrel = 1 + url = https://github.com/tochev/python3-pcloudapi + arch = any + license = MIT + depends = python + depends = python-requests + source = git+https://github.com/tochev/python3-pcloudapi + sha512sums = SKIP + +pkgname = python-pcloudapi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8bb0a29dd7b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=python-pcloudapi-git +pkgver=v0.0.2.r0.gc303afe +pkgrel=1 +pkgdesc="A python3 library for accessing the pcloud.com API" +arch=("any") +url="https://github.com/tochev/python3-pcloudapi" +license=("MIT") +depends=("python" "python-requests") +options=("!emptydirs") +source=("git+https://github.com/tochev/python3-pcloudapi") +md5sums=("SKIP") + +pkgver() { + cd "python3-pcloudapi" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/python3-pcloudapi" + python setup.py install --root="$pkgdir/" --optimize=1 + install -m 644 -D LICENCE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |