diff --git a/community/py3-rjsmin/APKBUILD b/community/py3-rjsmin/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..02b5ba59dc2617493dc7115ea9ce113ff964b79e --- /dev/null +++ b/community/py3-rjsmin/APKBUILD @@ -0,0 +1,30 @@ +# Maintainer: psykose <alice@ayaya.dev> +pkgname=py3-rjsmin +pkgver=1.2.1 +pkgrel=0 +pkgdesc="Fast javascript minifier for Python" +url="https://github.com/ndparker/rjsmin/tags" +arch="all" +license="Apache-2.0" +depends="python3" +makedepends="python3-dev py3-setuptools" +checkdepends="py3-pytest" +source="$pkgname-$pkgver.tar.gz::https://github.com/ndparker/rjsmin/archive/refs/tags/$pkgver.tar.gz" +builddir="$srcdir/rjsmin-$pkgver" + +build() { + python3 setup.py build +} + +check() { + PYTHONPATH="$(echo build/lib.linux*)" \ + pytest +} + +package() { + python3 setup.py install --skip-build --root="$pkgdir" +} + +sha512sums=" +4488986ed3e8e5b6f86daa8fefb1ae843ea511cad28ccb3b21cc528f2bb43111c7e9959dade06ba5ef5441c9bf158eac25de0fc75bac0ed1cd830e2ba6896056 py3-rjsmin-1.2.1.tar.gz +"