# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=slirp4netns pkgver=1.0.0 pkgrel=0 pkgdesc="User-mode networking for unprivileged network namespaces" url="https://github.com/rootless-containers/slirp4netns" arch="all" license="GPL-2.0-or-later" makedepends="glib-dev libcap-dev libseccomp-dev libslirp-dev autoconf automake" checkdepends="bash gzip jq iproute2 nmap-ncat" subpackages="$pkgname-doc" options="!check" # flaky tests source="$pkgname-$pkgver.tar.gz::https://github.com/rootless-containers/slirp4netns/archive/v$pkgver.tar.gz" check() { # needs tun module loaded make check-TESTS } prepare() { default_prepare ./autogen.sh } build() { ./configure --prefix=/usr make } package() { make DESTDIR="$pkgdir" install } sha512sums="fe0256f0b91647b361999915c6c2b975ee33c437afef3cf490f5e33f582da4db97e360e86654831d7e9b2a8b0d78c91080874a9377247693ac54ffdb60ca6fb9 slirp4netns-1.0.0.tar.gz"