# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libxi
pkgver=1.7.10
pkgrel=0
pkgdesc="X11 input extension library"
url="https://www.X.Org/"
arch="all"
license="MIT AND X11"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="libx11-dev libxext-dev libxfixes-dev util-macros xmlto
	xorgproto-dev"
source="https://www.X.Org/releases/individual/lib/libXi-$pkgver.tar.bz2"
builddir="$srcdir"/libXi-$pkgver

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

check() {
	make check
}

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

sha512sums="591f0860bf5904897587c4990d6c852f3729a212d1ef390362d41242440e078221877c31db2232d5cc81727fe97f4e194b077f7de917e251e60641bbd06ee218  libXi-1.7.10.tar.bz2"