# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mkcomposecache
pkgver=1.2.1
pkgrel=0
pkgdesc="Utility to manipulate X11 Compose key cache files"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="libx11-dev"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/app/mkcomposecache-$pkgver.tar.bz2"

prepare() {
	update_config_sub
	default_prepare
}

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="97ce9e5e2f2534291fc0b3a121899e2936de3e71ec6a9929cfc6e1e0f41e6d57cccd08147a2b5d3c7d70d1769f14ed6c4745c398602d5b81a2ddb8c7490fcb5b  mkcomposecache-1.2.1.tar.bz2"