mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/randrctl: build with gpep517
This commit is contained in:
parent
24003acd76
commit
2eae7e2d4a
@ -2,29 +2,34 @@
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=randrctl
|
||||
pkgver=1.9.0
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="Profile based screen manager for X"
|
||||
url="https://github.com/edio/randrctl"
|
||||
arch="noarch"
|
||||
license="GPL-3.0-or-later"
|
||||
depends="python3 py3-argcomplete py3-setuptools py3-yaml xrandr"
|
||||
checkdepends="py3-pytest"
|
||||
makedepends="python3-dev py3-pbr py3-setuptools"
|
||||
makedepends="python3-dev py3-pbr py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://github.com/edio/randrctl/archive/$pkgver/randrctl-$pkgver.tar.gz"
|
||||
|
||||
export PBR_VERSION="$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest-3 .
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
|
||||
install -m 644 -D randrctl/setup/99-randrctl.rules \
|
||||
"$pkgdir"/lib/udev/rules.d/99-$pkgname.rules
|
||||
|
Loading…
Reference in New Issue
Block a user