added core/libseccomp

This commit is contained in:
Kevin Mihelich 2020-12-03 16:47:02 +00:00
parent 6f3ade62b4
commit 8af6b3910e

52
core/libseccomp/PKGBUILD Normal file
View file

@ -0,0 +1,52 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - drop python bindings for now
pkgname=libseccomp
pkgver=2.5.1
pkgrel=2
pkgdesc='Enhanced seccomp library'
arch=('x86_64')
license=('LGPL2.1')
url="https://github.com/seccomp/libseccomp"
depends=('glibc')
checkdepends=('valgrind')
makedepends=('gperf')
source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
sha256sums=('ee307e383c77aa7995abc5ada544d51c9723ae399768a97667d4cdb3c3a30d55'
'SKIP')
b2sums=('683ae7536c0cba36f4d30640b42361171fc34b7cb04985ea56e64369df29c440361a0205385b14580cc0e481e0f9ffd0b0e8ebd4ac98817ed59298db6b274c35'
'SKIP')
validpgpkeys=(
'7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A' # Paul Moore <paul@paul-moore.com>
'47A68FCE37C7D7024FD65E11356CE62C2B524099' # Tom Hromatka <tom.hromatka@oracle.com>
)
prepare() {
cd ${pkgbase}-${pkgver}
autoreconf -fiv
}
build() {
cd ${pkgbase}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgbase}-${pkgver}
make check
}
package() {
provides=('libseccomp.so')
cd ${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 644 CHANGELOG README.md SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et: