# Maintainer: Donoban <donoban@riseup.net>
pkgname=py3-lxns
pkgver=0.1.0
pkgrel=0
pkgdesc="Python library to control Linux kernel namespaces"
url="https://github.com/igo95862/python-lxns"
arch="all"
license="MPL-2.0"
makedepends="meson python3-dev linux-headers"
source="python-lxns-$pkgver.tar.gz::https://github.com/igo95862/python-lxns/archive/refs/tags/$pkgver.tar.gz"
options="!check" # They need ns permissions

build() {
	mv python-lxns-$pkgver/* .
	abuild-meson output
	meson compile -C output
}

package() {
	cd src
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a8ed564e6df3f6b51ca551637efd8476e7578ccdbea6b8f19ad2f1c0973a11524fcb0e922a3267e93acdaa534fe538940a6936f95e13d1c9e0b34d08aee5c202  python-lxns-0.1.0.tar.gz
"
