# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xtrans
pkgver=1.3.5
pkgrel=1
pkgdesc="X transport library"
url="https://www.X.Org/"
arch="noarch"
license="X11 AND MIT"
depends=""
makedepends="util-macros xmlto"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="049fb996313e8a1625b66e1645a5f56d8a26c5dd91afe5869269716fce05f6c97c84f8ce4a6df2057106b47982c8291cecc223bef241f694174434c981a7029b  xtrans-1.3.5.tar.bz2"