diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-19 15:46:04 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-19 15:53:14 +0300 |
commit | a65a935e4e965c578479b4718ede3677b25dd3a0 (patch) | |
tree | 3e801c0d930f3737d15dd4238231d0330ea87101 /testing/py3-incoming/APKBUILD | |
parent | abeb4d8ddfc552d23141fe4ac21aea91add052b7 (diff) | |
download | aports-a65a935e4e965c578479b4718ede3677b25dd3a0.tar.bz2 aports-a65a935e4e965c578479b4718ede3677b25dd3a0.tar.xz |
testing/py-incoming: upgrade to python3
Diffstat (limited to 'testing/py3-incoming/APKBUILD')
-rw-r--r-- | testing/py3-incoming/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/py3-incoming/APKBUILD b/testing/py3-incoming/APKBUILD new file mode 100644 index 0000000000..31452c9ad9 --- /dev/null +++ b/testing/py3-incoming/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-incoming +_pkgname=incoming +pkgver=0.2.6 +pkgrel=0 +pkgdesc="A Python JSON validation framework" +url="https://github.com/vaidik/incoming" +arch="noarch" +license="MIT" +depends="python3" +depends_dev="" +makedepends="py3-setuptools" +install="" +subpackages="" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +replaces="py-incoming" # Backwards compatibility +provides="py-incoming=$pkgver-r$pkgrel" # Backwards compatibility + +build() { + cd "$_builddir" + python3 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="eb29d7c925daef241818745e703c6e53 incoming-0.2.6.tar.gz" +sha256sums="b09d781ecfa97ed05ecf3766073f1e68ba7dee5a5cd061a77198035b76cff488 incoming-0.2.6.tar.gz" +sha512sums="82902dc2adfba274497d51baebf577978c4c6a8ab5bf89b54c9b47abe0936f4cd8755c33451429049cc907f23e06b8bd51dbd3fadab4d42fff795a46b020f428 incoming-0.2.6.tar.gz" |