59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=libseccomp
|
|
pkgname=(libseccomp python-libseccomp)
|
|
pkgver=2.5.4
|
|
pkgrel=01
|
|
pkgdesc='Enhanced seccomp library'
|
|
arch=('x86_64')
|
|
url="https://github.com/seccomp/libseccomp"
|
|
depends=('glibc')
|
|
checkdepends=('valgrind')
|
|
makedepends=('gperf' 'cython' 'python-setuptools' 'automake' 'autoconf')
|
|
source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
|
|
|
|
prepare() {
|
|
cd ${pkgbase}-${pkgver}
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgbase}-${pkgver}
|
|
./configure --prefix=/usr
|
|
make
|
|
cd src/python
|
|
env VERSION_RELEASE=${pkgver} python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgbase}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package_libseccomp() {
|
|
provides=('libseccomp.so')
|
|
cd ${pkgbase}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm 644 CHANGELOG README.md SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|
|
|
|
package_python-libseccomp() {
|
|
depends=('python')
|
|
cd ${pkgbase}-${pkgver}/src/python
|
|
env VERSION_RELEASE=${pkgver} python setup.py install --root="${pkgdir}" --prefix=/usr -O1 --skip-build
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('LGPL2.1')
|
|
|
|
validpgpkeys=('7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A' # Paul Moore <paul@paul-moore.com>
|
|
'47A68FCE37C7D7024FD65E11356CE62C2B524099') # Tom Hromatka <tom.hromatka@oracle.com>
|
|
|
|
sha256sums=(d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb # libseccomp-2.5.4.tar.gz
|
|
af37e70eb422e6f983c1f135a3abb342c3b787716520b71bd774e4906003807f) # libseccomp-2.5.4.tar.gz.asc
|