# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'libpthread-stubs'
setvar pkgver = '0.3'
setvar pkgrel = '4'
setvar pkgdesc = ""Pthread functions stubs for platforms missing them""
setvar url = ""http://cgit.freedesktop.org/xcb/pthread-stubs""
setvar arch = ""all""
setvar license = ""X11""
setvar options = ""!dbg""
setvar source = ""http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2""
setvar builddir = ""$srcdir/$pkgname-$pkgver""

proc prepare {
	default_prepare

	cd $builddir
	update_config_sub
}

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

proc package {
	cd $builddir
	make -j1 DESTDIR="$pkgdir" install
}

setvar sha512sums = ""c7cf63fa82ce9e8c37c6dc3b8cc30f8883655f95683c4466c54b617b086dd26a43bfa36363e47dc5730af6d59ac70443d211eb01b07d276edd144030a3580b15  libpthread-stubs-0.3.tar.bz2""