# Contributor: John Vogel # Maintainer: John Vogel pkgname=nsjail pkgver=3.3 pkgrel=3 pkgdesc="A light-weight process isolation tool" url="https://github.com/google/nsjail" # upstream supported architectures arch="armv7 aarch64 x86 x86_64" license="Apache-2.0" makedepends="bison flex linux-headers abseil-cpp-dev libnl3-dev protobuf-dev libbsd-dev" options="!check" # no tests subpackages="$pkgname-doc" _kafelver=1af0975af45ca4404f357b9a4e1636f53a01bfd3 source="https://github.com/google/nsjail/archive/$pkgver/nsjail-$pkgver.tar.gz https://github.com/google/kafel/archive/$_kafelver/kafel-$_kafelver.tar.gz protobuf-23.patch rlimit64.patch " prepare() { default_prepare mv "$srcdir"/kafel-"$_kafelver"/* "$builddir"/kafel/ } build() { make } package() { install -D -t "$pkgdir"/usr/bin nsjail install -D -t "$pkgdir"/usr/share/man/man1 nsjail.1 install -D -t "$pkgdir"/usr/share/doc/nsjail README.md LICENSE install -d "$pkgdir"/usr/share/doc/nsjail/configs for config in configs/*; do install -D -t "$pkgdir"/usr/share/doc/nsjail/configs "$config" done } sha512sums=" 0efb1ba73b8311c769466b423737a7bf88e0ba788bd2684cbbb81d4a50ccb2dfc92f1fabb65fa834646a006dc309b4720623aaa9a1b772823a047fa44c54ad3a nsjail-3.3.tar.gz 521ab57afd6fb21dfff9d2ce20e316007b0dbff952cabc6e86a8071300a6c47351c7fe151c9c8db0c59fa3a27ca45b34934c029a3325252a2cef1b5de72e6e21 kafel-1af0975af45ca4404f357b9a4e1636f53a01bfd3.tar.gz 372054c359507448ce4b742e93ba0365dabae8c17546c6dc4c71d5694f0d2a2ce55fe0e375fb00e5e89085f6b538972a293007abfb3477abd524716c4ffe6aa5 protobuf-23.patch 90a562dff1eae2c6097c9b0b211e4f1e9d03647d1a1daa57b2068a5a2f10b7d8574bf042983e088f105c36656a146068b5c9cd72e64407c1cca4c4a858d7173c rlimit64.patch "