#!/bin/mkpkg
# description: Public client interface library for NIS(YP) and NIS+ from glibc
# url: https://github.com/thkukuk/libnsl

name=libnsl
version=2.0.1
release=1
depends=(libtirpc)
makedeps=(autoconf)
source=(https://github.com/thkukuk/libnsl/releases/download/v$version/$name-$version.tar.xz)

sha256sums=(
    "5c9e470b232a7acd3433491ac5221b4832f0c71318618dc6aa04dd05ffcd8fd9"
)

build() {
    cd $name-$version

    ./configure --prefix=/usr
    
    make
    make DESTDIR=$PKG install

    rm -f $PKG/usr/lib/*.la
}

# vim: filetype=sh
