OCaml 4.14.0 rebuild
[arch-packages.git] / libseccomp / trunk / PKGBUILD
blob9583f48fe41351cc46c3656114736de780785c25
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>
6 pkgbase=libseccomp
7 pkgname=(libseccomp python-libseccomp)
8 pkgver=2.5.4
9 pkgrel=1
10 pkgdesc='Enhanced seccomp library'
11 arch=('x86_64')
12 license=('LGPL2.1')
13 url="https://github.com/seccomp/libseccomp"
14 depends=('glibc')
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'
19             'SKIP')
20 b2sums=('38b134cb578f9355667546f92950ebcf8c53ccaf98db568db9aadfa9629c054136849e03d4bf9f09f73998fe66a5e8a9038573d19740b2bddf5518a8a0119229'
21         'SKIP')
22 validpgpkeys=(
23   '7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A' # Paul Moore <paul@paul-moore.com>
24   '47A68FCE37C7D7024FD65E11356CE62C2B524099' # Tom Hromatka <tom.hromatka@oracle.com>
27 prepare() {
28   cd ${pkgbase}-${pkgver}
29   autoreconf -fiv
32 build() {
33   cd ${pkgbase}-${pkgver}
34   ./configure --prefix=/usr
35   make
36   cd src/python
37   env VERSION_RELEASE=${pkgver} python setup.py build
40 check() {
41   cd ${pkgbase}-${pkgver}
42   make check
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
58 # vim: ts=2 sw=2 et: