testing/mimeo: build with gpep517

This commit is contained in:
ptrcnull 2024-08-04 23:31:19 +02:00
parent c09b5db2db
commit 1b289aafd3

View File

@ -2,23 +2,26 @@
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=mimeo
pkgver=2023
pkgrel=1
pkgrel=2
pkgdesc="Open files by MIME-type or file name using regular expressions"
url="https://xyne.dev/projects/mimeo/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-xdg file shared-mime-info"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://xyne.dev/projects/mimeo/src/mimeo-$pkgver.tar.xz"
options="!check" # no upstream checks
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="