description="Keyutils is a set of utilities for managing the key retention facility in the kernel."
url=" https://rhn.redhat.com/errata/RHEA-2006-0090.html"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=keyutils
version=1.6.3
release=3

source=(https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-$version.tar.gz)

build() {
  unset MAKEFLAGS

  cd $name-$version

  sed -i 's:$(LIBDIR)/$(PKGCONFIG_DIR):/usr/lib/pkgconfig:' Makefile

  make
  make DESTDIR=$PKG NO_ARLIB=1 LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/usr/sbin install
}
