pkgname=acl
pkgver=2.3.2
pkgdesc='Access control list utilities, libraries and headers'
homepage='https://savannah.nongnu.org/projects/acl'
license=('LGPL')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://download.savannah.gnu.org/releases/${pkgname}/${sources[0]}")
md5sums=("590765dee95907dbc3c856f7255bd669")


src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr         \
              --disable-static      \
              --docdir=/usr/share/doc/${pkgname}-${pkgver}
  make
}

src_check() {
  leaf_record_message "test/cp.test is known to fail."
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
