# Maintainer: 
# Contributor: Judd <jvinet@zeroflux.org>

pkgname=nfsidmap
pkgver=0.26
pkgrel=1
pkgdesc="Library to help mapping IDs, mainly for NFSv4"
arch=('x86_64')
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
depends=('glibc' 'libldap>=2.4.18')
license=('custom:nfsidmap')
source=(https://fedorapeople.org/~steved/libnfsidmap/0.26/libnfsidmap-$pkgver.tar.bz2)
md5sums=('2c0cf0e2b1665d51fa9a783679494888')

build() {
  cd "$srcdir"/lib$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "$srcdir"/lib$pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  # install license
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/nfsidmap/LICENSE
}
