# Maintainer: Natanael Copa pkgname=libtirpc pkgver=0.2.1 pkgrel=2 pkgdesc="Transport Independent RPC library (SunRPC replacement)" url="http://libtirpc.sourceforge.net/" arch="x86 x86_64" license="GPL2" depends= makedepends="libgssglue-dev heimdal-dev autoconf automake libtool" subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 nis.h libtirpc-no-des.patch" depends_dev="libgssglue-dev heimdal-dev" prepare() { cd "$srcdir"/$pkgname-$pkgver for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done # uclibc does not provide nis.h so provide our own mkdir src/rpcsvc cp "$srcdir"/nis.h src/rpcsvc/ sh bootstrap && libtoolize } build() { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr \ --enable-gss make || return 1 } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 install -D -m644 doc/etc_netconfig "$pkgdir"/etc/netconfig } md5sums="d77eb15f464bf9d6e66259eaf78b2a4e libtirpc-0.2.1.tar.bz2 082dff1bc78bdcbac6d305c1534fe3c0 nis.h e386d2893527ed313686eca6314d6675 libtirpc-no-des.patch"