# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxt
pkgver=1.1.5
pkgrel=1
pkgdesc="X11 toolkit intrinsics library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="libsm-dev"
makedepends="$depends_dev libice-dev libx11-dev util-macros xproto"
checkdepends="glib-dev"
source="http://www.x.org/releases/individual/lib/libXt-$pkgver.tar.bz2
	"

builddir="$srcdir"/libXt-$pkgver

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

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

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}
md5sums="8f5b5576fbabba29a05f3ca2226f74d3  libXt-1.1.5.tar.bz2"
sha256sums="46eeb6be780211fdd98c5109286618f6707712235fdd19df4ce1e6954f349f1a  libXt-1.1.5.tar.bz2"
sha512sums="29828cfc021b60e0a0b5ff0321801db20f12bd635866cd000b35a23736b5477a3d1e5f936a1124ed3e3f4c0e7a27cb8744dbb5ab4fbcd45c817a13877081e05b  libXt-1.1.5.tar.bz2"
