#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

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

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
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('custom:nfsidmap')

sha256sums=(391cd35a8aa48bcba1678b483c3e2525d0990eca963bb035962fcf1e3ee2a8bf) #  libnfsidmap-0.26.tar.bz2

##  
