# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libxdmcp
pkgver=1.1.3
pkgrel=0
pkgdesc="X11 Display Manager Control Protocol library"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="xorgproto-dev libbsd-dev util-macros xmlto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.X.Org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"
builddir="$srcdir/libXdmcp-$pkgver"

# secfixes:
#   1.1.2-r3:
#   - CVE-2017-2625

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

check() {
	make check
}

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

sha512sums="cb1d4650f97d66e73acd2465ec7d757b9b797cce2f85e301860a44997a461837eea845ec9bd5b639ec5ca34c804f8bdd870697a5ce3f4e270b687c9ef74f25ec  libXdmcp-1.1.3.tar.bz2"