diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-20 13:15:04 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-21 10:40:07 +0000 |
commit | a0c6b18c3e42fe4b63a2abd544c18962f6cc144e (patch) | |
tree | 6ff46b09b5990de0c3f484c531a3ac607f672014 /testing/py-codecov/APKBUILD | |
parent | 6c915dc3cc50bf17f1acdc616300214259ee5f0c (diff) | |
download | aports-a0c6b18c3e42fe4b63a2abd544c18962f6cc144e.tar.bz2 aports-a0c6b18c3e42fe4b63a2abd544c18962f6cc144e.tar.xz |
testing/py-codecov: new aport
Diffstat (limited to 'testing/py-codecov/APKBUILD')
-rw-r--r-- | testing/py-codecov/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/py-codecov/APKBUILD b/testing/py-codecov/APKBUILD new file mode 100644 index 0000000000..85454f8183 --- /dev/null +++ b/testing/py-codecov/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=py-codecov +pkgver=1.1.0 +pkgrel=0 +pkgdesc="Report uploader for Codecov" +url="https://github.com/codecov/codecov-python" +arch="noarch" +license="Apache2" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +options="!check" #no testsuite +source="$pkgname-$pkgver.tar.gz::https://github.com/codecov/codecov-python/archive/v$pkgver.tar.gz" +builddir="$srcdir"/codecov-python-$pkgver + +build() { + cd "$builddir" + python2 setup.py --quiet build + python3 setup.py --quiet build +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/bin +} + +_py2() { + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + local pyver="${1:6:1}" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="d113a64f668f5faaaa4b0871e532eb89632c2bebf5c443aa9519b6f58bebb5643ce77cff608ed75e0fa91e90ace182b46c32094ac424395caeaaf092d09fbe65 py-codecov-1.1.0.tar.gz" |