aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2020-12-23 13:45:19 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-12-23 15:59:53 +0000
commitbddf3edfdf3ca3a365d220b172911edfff74fc2d (patch)
tree5c27769861cae251c2a53df647ed1acdd7c0134d
parent3a682aaf61fbfc7ac408261d31e5e159f17f9c8c (diff)
testing/py3-build: new aport
https://github.com/pypa/build A simple, correct PEP517 package builder
-rw-r--r--testing/py3-build/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/py3-build/APKBUILD b/testing/py3-build/APKBUILD
new file mode 100644
index 00000000000..4362ab8a4a3
--- /dev/null
+++ b/testing/py3-build/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-build
+_pkgname=build
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="Correct PEP517 package builder"
+url="https://github.com/pypa/build"
+arch="noarch"
+license="MIT"
+depends="python3"
+# Test suite is not shipped at the moment
+options="!check"
+makedepends="py3-setuptools py3-wheel"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+replaces=py-build # Backwards compatibility
+provides=py-build=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="23d40fa9d037ff4ba640ece9c38d4a47d28a7640df71f6647b7018a7d8fb63b00924cb3e412d04a84130de52e0ed7cfa8bb118f9c87ed15c6b0958c6cc0bfca9 build-0.1.0.tar.gz"