# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=setxkbmap
pkgver=1.3.2
pkgrel=0
pkgdesc="Set keyboard layout in X11"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="libxkbfile-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/app/$pkgname-$pkgver.tar.bz2"

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

check() {
	make check
}

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

sha512sums="bfa8015dee0d8d3fdbbd89afbd71c8606ce168d6edca8521d5ed05a00fecbea39bc4bfcce84b71458bdeb34c60bd80a5df27e0691ccee3966443ecdc937faf38  setxkbmap-1.3.2.tar.bz2"