# Maintainer: Natanael Copa pkgname=npth pkgver=1.1 pkgrel=0 pkgdesc="The New GNU Portable Threads library" url="ftp://ftp.gnupg.org/gcrypt/npth/" arch="all" license="LGPLv3+ or GPLv2+ or (LGPLv3+ and GPLv2+)" depends="" depends_dev="" makedepends="$depends_dev" install="" subpackages="$pkgname-dev" source="ftp://ftp.gnupg.org/gcrypt/npth/npth-$pkgver.tar.bz2" _builddir="$srcdir"/npth-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="aaffc8ef3e955ab50a1905809f268a23 npth-1.1.tar.bz2" sha256sums="896c561eb2ec8da35f11828fb04a3fbff12d41ff657c799056d7dc4a66e5df7f npth-1.1.tar.bz2" sha512sums="e2aef40d2ab6353e2bfc0442d6346f2b71c6a5ef0e0255b1402396002ac289b2613cc5c10ef56f44ddbe27425a98253d733937734b58f118715576eb7343a604 npth-1.1.tar.bz2"