# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=xcalib
pkgver=0.10
pkgrel=2
pkgdesc="A tiny monitor calibration loader for X.org"
url="https://github.com/OpenICC/xcalib"
arch="all"
license="GPL-2.0-or-later"
makedepends="libx11-dev libxxf86vm-dev libxrandr-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenICC/xcalib/archive/$pkgver.tar.gz"

build() {
	make xcalib
}

package() {
	install -Dm755 xcalib $pkgdir/usr/bin/xcalib

	for i in *.icc *.icm; do
		install -Dm644 $i $pkgdir/usr/share/xcalib/$i
	done
}

sha512sums="c52252c903125bf95592d35a75c818be196dd92a86ceab39e0a933162e04e160f2303d20e5892e72a23a7e8067c1e8d785381b4c327980a6fab22ed093c28f41  xcalib-0.10.tar.gz"
