diff options
author | prspkt <prspkt@protonmail.com> | 2019-08-12 01:25:12 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-08-12 01:46:43 +0300 |
commit | 63cb7d35302e22b37a23c858025855676cae0985 (patch) | |
tree | 1760429202d6da4176f4126597ae4bf937704fba /community | |
parent | 4bd0b1de5e32617e268779f1fbc61ebb30ed3032 (diff) | |
download | aports-63cb7d35302e22b37a23c858025855676cae0985.tar.bz2 aports-63cb7d35302e22b37a23c858025855676cae0985.tar.xz |
community/py-libcloud: drop python2
* Update url to use https
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community')
-rw-r--r-- | community/py-libcloud/APKBUILD | 47 | ||||
-rw-r--r-- | community/py3-apache-libcloud/APKBUILD | 30 |
2 files changed, 30 insertions, 47 deletions
diff --git a/community/py-libcloud/APKBUILD b/community/py-libcloud/APKBUILD deleted file mode 100644 index 3bed271a75..0000000000 --- a/community/py-libcloud/APKBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor: Francesco Colista <fcolista@alpinelinux.org> -# Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-libcloud -_pkgname=${pkgname/py-/} -pkgver=2.5.0 -pkgrel=0 -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="Apache-2.0" -makedepends="py-setuptools python2-dev python3-dev" -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 - -check() { - python2 setup.py check - python3 setup.py check -} - -build() { - python2 setup.py build - python3 setup.py build -} - -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 -} - -sha512sums="bedb79d7b3688c07dc8c7d6376dd3abc6370cd4587f5fe879cdda6b18e3fd694569a577234cd6c6cf2e9533c3fda7a3dea6fdf6ada7784a6622bc928dabb83f6 py-libcloud-2.5.0.tar.gz" diff --git a/community/py3-apache-libcloud/APKBUILD b/community/py3-apache-libcloud/APKBUILD new file mode 100644 index 0000000000..e6e065cc41 --- /dev/null +++ b/community/py3-apache-libcloud/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py3-apache-libcloud +pkgver=2.5.0 +pkgrel=1 +pkgdesc="Python library for interacting with many popular cloud service providers using a unified API" +url="https://libcloud.apache.org/" +arch="noarch" +license="Apache-2.0" +depends="python3" +makedepends="py3-setuptools" +source="libcloud-$pkgver.tar.gz::https://github.com/apache/libcloud/archive/v$pkgver.tar.gz" +builddir="$srcdir"/libcloud-$pkgver + +replaces=py-libcloud # Backwards compatibility +provides=py-libcloud=$pkgver-r$pkgrel # Backwards compatibility + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="bedb79d7b3688c07dc8c7d6376dd3abc6370cd4587f5fe879cdda6b18e3fd694569a577234cd6c6cf2e9533c3fda7a3dea6fdf6ada7784a6622bc928dabb83f6 libcloud-2.5.0.tar.gz" |