# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xrdb
pkgver=1.2.2
pkgrel=0
pkgdesc="X server resource database utility"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="libxmu-dev libx11-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/xrdb-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-cpp=/usr/bin/cpp # optional run-time dependency
	make
}

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

sha512sums="
c8a6fc94e270e9cb5602e055150553de103d545298285157ecd8924f163a10ebeb9acfff56d1fafbf48d339809c76340213792478cdf3270012d3cd05486001c  xrdb-1.2.2.tar.xz
"
