# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=liblbxutil
pkgver=1.1.0
pkgrel=0
pkgdesc="Utility library for X11 Low Bandwidth extension"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="xorgproto-dev zlib-dev"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/liblbxutil-$pkgver.tar.bz2"

prepare() {
	default_prepare
	chmod a+w config.sub
	update_config_sub
}

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="93bdefef297d46a301dd1cab35ad186438e340822ba5aac20e9d8f4c51cd66e4118b0d9f4afc48ef33a67c6e413f551bcb59089d01597ed175b400902b9f23f4  liblbxutil-1.1.0.tar.bz2"