APP=libseccomp
VERSION=2.4.2
BUILD=1sml
HOMEPAGE='https://github.com/seccomp/libseccomp'
DOWNLOAD='https://github.com/seccomp/libseccomp/releases/download/v2.4.2/libseccomp-2.4.2.tar.gz'
DESC="library providing easy and independent interface to kernel syscall filtering mechanism"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$PKG 

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
6396fa4795193bc9138894f2969ec0a1659282380ab5a287ab30e0ed7004ec29671c66ca29f7eb2b09ef894287e450e3a76042980403af2e4eec3bd3b23866d2  libseccomp-2.4.2.tar.lz
"
