# Template file for 'libnfs'
pkgname=libnfs
version=1.3.0
revision=2
wrksrc="sahlberg-libnfs-47e5a2c"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="libtool pkg-config automake"
short_desc="Client library for accessing NFS shares"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/sahlberg/libnfs"
license="GPL-2"
distfiles="https://github.com/sahlberg/libnfs/tarball/$pkgname-$version"
checksum=0acda3029db699c3978684080843f71d222ad35b30a2ff0d220d144e98854948

pre_configure() {
	autoreconf -fi
}

libnfs-devel_package() {
	depends="${sourcepkg}>=${version}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

libnfs_package() {
	pkg_install() {
		vmove usr
	}
}
