# Contributor: Oliver Smith # Maintainer: Oliver Smith pkgname=mrhlpr pkgver=1.2.0 pkgrel=0 pkgdesc="postmarketOS tools for interacting with gitlab MRs" url="https://gitlab.com/postmarketOS/mrhlpr" arch="noarch" license="GPL-3.0-or-later" depends="python3 git mrhlpr-common" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends="pytest" source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketos/mrhlpr/-/archive/$pkgver/mrhlpr-$pkgver.tar.gz" options="!check" # no testsuite subpackages="mrhlpr-common mrtest" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } common() { depends="python3" amove usr/lib/python3*/site-packages/mrhlpr* } mrtest() { pkgdesc="Installs apks from pmaports/aports MRs" url="https://wiki.postmarketos.org/wiki/Mrtest" depends="mrhlpr-common=$pkgver-r$pkgrel" amove \ usr/lib/python3*/site-packages/mrtest \ usr/bin/mrtest } sha512sums=" 0c1a772e81660181d8f57dde8d1cf6b211f7cce2c0c6f39806c0eee4f2dea61fbd9642ec53228575957efb9ef1d8727f09ee89cc0108fc45e776ac40687d7da4 mrhlpr-1.2.0.tar.gz "