libseccomp 2.5.5-2
This commit is contained in:
parent
1861012027
commit
49b2889dd8
33
PKGBUILD
33
PKGBUILD
@ -4,34 +4,49 @@
|
|||||||
# then please put 'unknown'.
|
# then please put 'unknown'.
|
||||||
|
|
||||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
pkgname=libseccomp
|
pkgname=(libseccomp python-libseccomp)
|
||||||
|
pkgbase=libseccomp
|
||||||
pkgver=2.5.5
|
pkgver=2.5.5
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Enhanced seccomp library"
|
pkgdesc="Enhanced seccomp library"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/seccomp/libseccomp"
|
url="https://github.com/seccomp/libseccomp"
|
||||||
license=('LGPL2.1')
|
license=('LGPL2.1')
|
||||||
depends=('glibc')
|
depends=('glibc' 'python')
|
||||||
makedepends=('gperf')
|
makedepends=('gperf' 'python-cython' 'python-setuptools')
|
||||||
source=(https://github.com/seccomp/libseccomp/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
source=(https://github.com/seccomp/libseccomp/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
|
||||||
sha256sums=(248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375)
|
sha256sums=(248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgbase}-${pkgver}
|
||||||
|
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgbase}-${pkgver}
|
||||||
|
|
||||||
${CONFIGURE} --disable-static
|
#${CONFIGURE} --disable-static
|
||||||
|
${CONFIGURE}
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
(
|
||||||
|
cd src/python
|
||||||
|
env VERSION_RELEASE=${pkgver} python3 setup.py build
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
package_libseccomp() {
|
package_libseccomp() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgbase}-${pkgver}
|
||||||
|
|
||||||
make DESTDIR=${pkgdir} install
|
make DESTDIR=${pkgdir} install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_python-libseccomp() {
|
||||||
|
depends=('python')
|
||||||
|
|
||||||
|
cd ${pkgbase}-${pkgver}/src/python
|
||||||
|
|
||||||
|
env VERSION_RELEASE=${pkgver} python3 setup.py install --root=${pkgdir} --prefix=/usr -O1 --skip-build
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user