From 31626d57ddce3f410ef652ced673868bcbe696d9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 4 Jan 2024 20:59:27 -0500 Subject: [PATCH] user/py3-jstyleson: new aport --- user/py3-jstyleson/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 user/py3-jstyleson/APKBUILD diff --git a/user/py3-jstyleson/APKBUILD b/user/py3-jstyleson/APKBUILD new file mode 100644 index 0000000..bdd6573 --- /dev/null +++ b/user/py3-jstyleson/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-jstyleson +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=jstyleson +pkgver=0.0.2 +pkgrel=0 +pkgdesc="Library to parse JSON with js-style comments." +url="https://pypi.python.org/project/jstylejson" +arch="noarch" +license="MIT" +checkdepends="python3-dev" +makedepends="py3-setuptools py3-gpep517 py3-wheel" +source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/j/jstyleson/jstyleson-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +99285536538f3cd70e2cee505826f335e207b577f361f5996589578eef06b8b29fd25fa254c150ef40618cca19554fe329750c123be0a9abf8d19cee47369a54 py3-jstyleson-0.0.2.tar.gz +"