2024-10-14 17:20:49 +08:00
|
|
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
|
|
# then please put 'unknown'.
|
|
|
|
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
2024-11-03 21:55:59 +08:00
|
|
|
pkgname=(libseccomp python-libseccomp)
|
|
|
|
pkgbase=libseccomp
|
2024-10-14 17:20:49 +08:00
|
|
|
pkgver=2.5.5
|
2024-11-03 21:55:59 +08:00
|
|
|
pkgrel=2
|
2024-10-14 17:20:49 +08:00
|
|
|
pkgdesc="Enhanced seccomp library"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/seccomp/libseccomp"
|
|
|
|
license=('LGPL2.1')
|
2024-11-03 21:55:59 +08:00
|
|
|
depends=('glibc' 'python')
|
|
|
|
makedepends=('gperf' 'python-cython' 'python-setuptools')
|
|
|
|
source=(https://github.com/seccomp/libseccomp/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
|
2024-10-14 17:20:49 +08:00
|
|
|
sha256sums=(248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375)
|
|
|
|
|
|
|
|
prepare() {
|
2024-11-03 21:55:59 +08:00
|
|
|
cd ${pkgbase}-${pkgver}
|
2024-10-14 17:20:49 +08:00
|
|
|
|
|
|
|
autoreconf -fiv
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-11-03 21:55:59 +08:00
|
|
|
cd ${pkgbase}-${pkgver}
|
2024-10-14 17:20:49 +08:00
|
|
|
|
2024-11-03 21:55:59 +08:00
|
|
|
#${CONFIGURE} --disable-static
|
|
|
|
${CONFIGURE}
|
2024-10-14 17:20:49 +08:00
|
|
|
|
|
|
|
make
|
2024-11-03 21:55:59 +08:00
|
|
|
|
|
|
|
(
|
|
|
|
cd src/python
|
|
|
|
env VERSION_RELEASE=${pkgver} python3 setup.py build
|
|
|
|
)
|
2024-10-14 17:20:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libseccomp() {
|
2024-11-03 21:55:59 +08:00
|
|
|
cd ${pkgbase}-${pkgver}
|
2024-10-14 17:20:49 +08:00
|
|
|
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|
2024-11-03 21:55:59 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|