aboutsummaryrefslogblamecommitdiffstats
path: root/testing/randrctl/APKBUILD
blob: fdb95d3dafd752a061a809688559798373420406 (plain) (tree)
1
2
3
4
5



                                               
        































                                                                                                                                                                    
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=randrctl
pkgver=1.8.0
pkgrel=2
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-yaml xrandr"
checkdepends="py3-pytest"
makedepends="python3-dev py3-pbr py3-setuptools"
source="https://github.com/edio/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

export PBR_VERSION="$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	pytest-3 .
}

package() {
	cd "$builddir"

	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -m 644 -D randrctl/setup/99-randrctl.rules \
		"$pkgdir"/lib/udev/rules.d/99-$pkgname.rules
}

sha512sums="f8dd2cb009853ceed588f02485a850676d163e3fce23f299b6e8db7c98c50a6c3360b531d14e3102b9a132f29e015a8a8e40ed8ecffb6340144e34e3a28f5ff6  randrctl-1.8.0.tar.gz"