makedepends=(rpcsvc-proto libtirpc)

description="Contains the public client interface for NIS(YP) and NIS+."

name=libnsl
version=2.0.1
release=2

packager="Great-OS Team"
maintainer="Great-OS Team"

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/thkukuk/libnsl/archive/v$version.tar.gz)

build() {
  
  cd $name-$version
  
  autoreconf -fiv
  
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --disable-static
  
  make
  make DESTDIR=$PKG install

  # Obsolet lib
  rm $PKG/usr/lib/libnsl.la
}
