# Maintainer: Natanael Copa pkgname=libtirpc pkgver=0.3.1 pkgrel=1 pkgdesc="Transport Independent RPC library (SunRPC replacement)" url="http://libtirpc.sourceforge.net/" arch="all" license="BSD" depends= depends_dev="krb5-dev bsd-compat-headers" makedepends="$depends_dev autoconf automake libtool linux-headers" subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg" source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 nis.h " prepare() { cd "$srcdir"/$pkgname-$pkgver # uclibc/musl does not provide nis.h so provide our own mkdir src/rpcsvc cp "$srcdir"/nis.h src/rpcsvc/ for i in $source; do case $i in *.patch) msg "Applying $i" patch -N -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconf=/etc \ --disable-authdes \ || return 1 make || return 1 } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="bf1905c13cdfc232ee0cf117c74d4a5b libtirpc-0.3.1.tar.bz2 821394d42c2a666d9b69452b4cc444b5 nis.h" sha256sums="a8838fe180deb8a6f6e491ee665325a28dee4100ec6b1f0b86d611dbfe3a2bb8 libtirpc-0.3.1.tar.bz2 82657302b530628afd5866b76fc338956ca011d11e995cf6dea5d8b0493278eb nis.h" sha512sums="31b0a00a5390e418ab909e02fb67cbe31bef3326ee0105b2d9dc3ed93270a86e30d4cd618335af01be6b4da4bea215c111b9bead0d8d3e225c2e1d1b2f1e76a3 libtirpc-0.3.1.tar.bz2 83be3277aa7539d454273d7579827ff09e6b927e21de0af8a9290733b4bdfdcebfef26c9faffffd005a7631eae8beb4db9f60787f08db92fdd140686fe160c47 nis.h"