1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Daniel Micay <danielmicay@gmail.com>
4 # Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
7 pkgname=(libseccomp python-libseccomp)
10 pkgdesc='Enhanced seccomp library'
13 url="https://github.com/seccomp/libseccomp"
15 checkdepends=('valgrind')
16 makedepends=('gperf' 'cython' 'python-setuptools')
17 source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
18 sha256sums=('d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb'
20 b2sums=('38b134cb578f9355667546f92950ebcf8c53ccaf98db568db9aadfa9629c054136849e03d4bf9f09f73998fe66a5e8a9038573d19740b2bddf5518a8a0119229'
23 '7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A' # Paul Moore <paul@paul-moore.com>
24 '47A68FCE37C7D7024FD65E11356CE62C2B524099' # Tom Hromatka <tom.hromatka@oracle.com>
28 cd ${pkgbase}-${pkgver}
33 cd ${pkgbase}-${pkgver}
34 ./configure --prefix=/usr
37 env VERSION_RELEASE=${pkgver} python setup.py build
41 cd ${pkgbase}-${pkgver}
45 package_libseccomp() {
46 provides=('libseccomp.so')
47 cd ${pkgbase}-${pkgver}
48 make DESTDIR="${pkgdir}" install
49 install -Dm 644 CHANGELOG README.md SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}"
52 package_python-libseccomp() {
53 depends=('python' 'libseccomp.so')
54 cd ${pkgbase}-${pkgver}/src/python
55 env VERSION_RELEASE=${pkgver} python setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build