diff options
author | prspkt <prspkt@protonmail.com> | 2019-04-02 19:06:54 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-04-02 19:18:22 +0300 |
commit | 9b6556c59d326ffe02aba7834edca55c81fe8792 (patch) | |
tree | 3032cd888499ad5b46a0cd6a69ae4d8927cadd56 /testing/py3-setuptools-git/APKBUILD | |
parent | 3da16a2153378438b5e256d29cdd65f0f1bfc38e (diff) | |
download | aports-9b6556c59d326ffe02aba7834edca55c81fe8792.tar.bz2 aports-9b6556c59d326ffe02aba7834edca55c81fe8792.tar.xz |
testing/py-setuptools-git: upgrade to python3
Diffstat (limited to 'testing/py3-setuptools-git/APKBUILD')
-rw-r--r-- | testing/py3-setuptools-git/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/py3-setuptools-git/APKBUILD b/testing/py3-setuptools-git/APKBUILD new file mode 100644 index 0000000000..e64e47969f --- /dev/null +++ b/testing/py3-setuptools-git/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-setuptools-git +_pkgname=setuptools-git +pkgver=1.2 +pkgrel=1 +pkgdesc="Setuptools plugin for Git" +url="https://github.com/wichert/setuptools-git" +arch="noarch" +license="BSD" +replaces="py-setuptools-git" # for backwards compatibility +provides="py-setuptools-git=$pkgver-r$pkgrel" # for backwards compatibility +depends="python3 git" +makedepends="python3-dev py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + export EMAIL="Test User <user@example.com>" + python3 setup.py test +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="c070911618b6b92c862fb0bd40f1daeaf79e2ba10389fa1e69e4c50cfdd39c8e57a612082cbc7d932f8cea12a769e13451e35e1c8fe34f170d4817fd0d44f156 setuptools-git-1.2.tar.gz" |