# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=liburing
pkgver=2.8
pkgrel=0
pkgdesc="Linux kernel io_uring access library"
url="https://git.kernel.dk/cgit/liburing/"
arch="all"
license="LGPL-2.1-or-later OR MIT"
makedepends="linux-headers coreutils"
subpackages="liburing-ffi $pkgname-dev $pkgname-doc"
source="https://git.kernel.dk/cgit/liburing/snapshot/liburing-$pkgver.tar.gz
	"

build() {
	./configure \
		--prefix=/usr \
		--use-libc \
		--mandir=/usr/share/man
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

ffi() {
	amove usr/lib/liburing-ffi.so.*
}

sha512sums="
2170b323485c3103b77b89b21756f18922c558f724ba6f9fbdbc81b35bea0ef02b80468a5560742849a936aac90b2dd3c761b6c7df28dbeccfd2f85c2a8af85a  liburing-2.8.tar.gz
"
