# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libpthread-stubs
pkgver=0.4
pkgrel=0
pkgdesc="POSIX threading functions stubs for platforms missing them"
url="https://cgit.freedesktop.org/xcb/pthread-stubs"
arch="all"
options="!dbg"
license="X11"
depends=""
makedepends=""
source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"

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

check() {
	make check
}

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

sha512sums="0fec563f3833b84311b32cb13a4fd9832aeb0204c65b1541bf453d5d35693b2267c3cee656e00a4b8533b07a8f6320ca5c3672dcf8ab047cdac8628154c08954  libpthread-stubs-0.4.tar.bz2"