aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ddcutil/APKBUILD
blob: 04bc7aa3f690c775d5074cf6a52e0f4c2d7414e0 (plain)
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
# Contributor: Alex Laskin <alex@lask.in>
# Maintainer:  Alex Laskin <alex@lask.in>
pkgname=ddcutil
pkgver=0.9.1
pkgrel=0
pkgdesc="Query and change Linux monitor settings using DDC/CI and USB"
url="https://github.com/rockowitz/ddcutil"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers autoconf automake libtool eudev-dev libusb-dev libxrandr-dev glib-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rockowitz/ddcutil/archive/v${pkgver}.tar.gz
	execinfo.patch"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir/usr/include" "$pkgdir/usr/lib" "$pkgdir/usr/share/ddcutil"
}
sha512sums="b2d5866606a4bc081d89180e910822f2a2a653a2782e3df582536ddc86c7d3dc02309dbb41f8d566f6ebdc5d82d3aa11792a04c28b3d83552b024dfd59891fda  ddcutil-0.9.1.tar.gz
4d99a24bd863f060d74111f6853e039a0dc67a3e1c986ea9fac3a35451caf4e95d8749016800be6f259e4cb451c9db734dcef0b710b542ee3f987586cacb8e04  execinfo.patch"