# Contributor: Tim Zebulla pkgname=nfs-ganesha-git pkgver=V2.5.dev.8.0.g46953890f pkgver(){ cd $pkgname git describe --tags --long | sed 's/-/./g;s/^v//' } pkgrel=1 pkgdesc="Userspace NFS server" arch=('i686' 'x86_64') url="http://github.com/nfs-ganesha/nfs-ganesha" license=('GPL') depends=('gnutls' 'curl' 'libgcrypt') makedepends=('git' 'cmake' 'pkgconfig' 'autoconf' 'libtool' 'bison' 'flex' 'libgssglue' 'openssl' 'nfs-utils' 'doxygen') optdepends=('perl') provides=('nfs-ganesha') conflicts=('nfs-ganesha') source=("$pkgname::git://github.com/nfs-ganesha/nfs-ganesha.git") md5sums=('SKIP') build() { cd "$pkgname" git submodule update --init cmake src -DCMAKE_INSTALL_PREFIX=/usr \ -DFSAL_DESTINATION=/usr/lib/ganesha \ -DCMAKE_BUILD_TYPE=Maintainer \ -DLIB_INSTALL_DIR=/usr/lib make } package() { cd "$pkgname" make DESTDIR="$pkgdir" install cd .. cd "$pkgdir" rm -r ./var }