# Maintainer: Natanael Copa pkgname=unfs3 pkgver=0.9.22 pkgrel=3 pkgdesc="a user-space implementation of the NFSv3 server specification" url="http://unfs3.sourceforge.net/" arch="all" license='GPL' depends="" depends_dev="libtirpc-dev flex-dev" makedepends="$depends_dev flex" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz unfs3-0.9.22-musl.patch" subpackages="$pkgname-doc" build() { cd "$srcdir/$pkgname-$pkgver" export CFLAGS="$CFLAGS `pkgconf --cflags libtirpc`" export LDFLAGS="$LDFLAGS `pkgconf --libs-only-L libtirpc`" export LIBS="$LIBS `pkgconf --libs-only-l libtirpc`" sed -i '/LDFLAGS=/ s,-R/usr/ucblib,,' ./configure ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ || return 1 make -j1 || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install } md5sums="ddf679a5d4d80096a59f3affc64f16e5 unfs3-0.9.22.tar.gz 0cf4e87daee20f8504cc8af2106033b7 unfs3-0.9.22-musl.patch" sha256sums="482222cae541172c155cd5dc9c2199763a6454b0c5c0619102d8143bb19fdf1c unfs3-0.9.22.tar.gz 6d5e371dbacb055e8775e409c24a4fd73153510fcb5ace2c0a4e7a189f9140d7 unfs3-0.9.22-musl.patch" sha512sums="b1e4b7f5b7b7de27bb5411c69363a6b40be0fcf1f772e283f0868a2155fa9ea4b9b8e7f05b1706e41cf09dd2ee4baab472a01bc4640ae47e3be2a19d8d3f5f9e unfs3-0.9.22.tar.gz f2221651fad842acb8b5fd637514caa07300f627efd5b168ee2939ab3b6ea55fdefa3c3f3336425e255ee7badd326528c722d4064a04936b5468aabc79cbca02 unfs3-0.9.22-musl.patch"