# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=py3-llfuse
pkgver=1.5.0
pkgrel=1
pkgdesc="Python-LLFUSE is a set of Python bindings for the low level FUSE API"
url="https://github.com/python-llfuse/python-llfuse/"
arch="all"
license="GPL-2.0-or-later"
depends="python3"
makedepends="cython python3-dev py3-setuptools fuse-dev"
options="!check" # checks are dependent on self
source="https://files.pythonhosted.org/packages/source/l/llfuse/llfuse-$pkgver.tar.gz"
builddir="$srcdir/llfuse-$pkgver"

prepare() {
	default_prepare

	# force cython regenerate for py3.11
	rm src/llfuse.c
}

build() {
	python3 setup.py build_cython
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
bb84c697658e7cd39eb6af3a4a6085c3bc3295e5f0b4f35adf6565ecff5077acb27ecd92f7c6420aa06dab36d9b54915bce65e4ec3d011047a0a15cdccbbb284  llfuse-1.5.0.tar.gz
"
