aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-09-15 06:24:00 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-09-15 06:24:00 +0000
commit9bca557a059449f19ba2b83a3c73ed39a7d8b3e9 (patch)
tree080f9a59e1a83a57497b874b443fb9a4c722bd01 /community
parentfafe26db0feaa540b3e13a1e45253e4b6e1a8c50 (diff)
downloadaports-9bca557a059449f19ba2b83a3c73ed39a7d8b3e9.tar.bz2
aports-9bca557a059449f19ba2b83a3c73ed39a7d8b3e9.tar.xz
community/py-libcloud: moved from testing, improved APKBUILD
Diffstat (limited to 'community')
-rw-r--r--community/py-libcloud/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/community/py-libcloud/APKBUILD b/community/py-libcloud/APKBUILD
new file mode 100644
index 0000000000..b7b2e51e73
--- /dev/null
+++ b/community/py-libcloud/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-libcloud
+_pkgname=${pkgname/py-/}
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Python library for interacting with many of the popular cloud service providers using a unified API."
+url="http://libcloud.apache.org/"
+arch="noarch"
+license="APACHE2"
+depends=""
+makedepends="py-setuptools python2-dev python3-dev"
+install=""
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/apache/${pkgname/py-/}/archive/v$pkgver.tar.gz"
+
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+md5sums="ad425197b95e51ecde8c7e3a4b7a9b1e py-libcloud-1.1.0.tar.gz"
+sha256sums="cf1aef68ab951a9686af6395262d4d89e51f5fe21bff0a370b452289b14d9b1f py-libcloud-1.1.0.tar.gz"
+sha512sums="fa413ffa0ebc644990d9b55102bb95a45d5f8f45744d6645aa7b4a3f071f5d2cc5ca8f9b00e176efd1dfe70f29aaa3b2d6d24d919fc207536728e93ef9f66a60 py-libcloud-1.1.0.tar.gz"