# Maintainer: Chocobo1 # Contributor: Lex Black # Contributor: Daniel Micay pkgname=libseccomp-git pkgver=2.5.4.r126.gf1c3196 pkgrel=1 pkgdesc="Interface to the Linux Kernel's syscall filtering mechanism" arch=('i686' 'x86_64') url="https://github.com/seccomp/libseccomp" license=('LGPL') depends=('glibc') makedepends=('git' 'gperf') provides=("libseccomp=$pkgver" 'libseccomp.so') conflicts=('libseccomp') options=('staticlibs') source=("git+https://github.com/seccomp/libseccomp.git") sha256sums=('SKIP') pkgver() { cd "libseccomp" _tag=$(git tag -l --sort -v:refname | head -n1) _rev=$(git rev-list --count $_tag..HEAD) _hash=$(git rev-parse --short HEAD) printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//' } build() { cd "libseccomp" ./autogen.sh ./configure \ --prefix="/usr" make } check() { cd "libseccomp" #make check } package() { cd "libseccomp" make DESTDIR="$pkgdir" install }