# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=setxkbmap
pkgver=1.3.4
pkgrel=0
pkgdesc="set the keyboard using the X Keyboard Extension"
url="https://xorg.freedesktop.org/"
arch="all"
options="!check"  # No test suite.
license="MIT"
makedepends="libxkbfile-dev libxrandr-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/setxkbmap-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f4d026e7707656173f54d79b95ff3370ae06eaf252b89b79bc7175edeaf3ef79073d4d7d8a35fdee95608bf85d7d23514d74f00e55b613810ef6c3ccc0cf498b  setxkbmap-1.3.4.tar.xz
"
