aboutsummaryrefslogtreecommitdiffstats
path: root/testing/randrctl/APKBUILD
blob: 2f239c722b7399c91df2b2f0719b0555ae039e95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=randrctl
pkgver=1.8.0
pkgrel=1
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"