# Contributor: NerdNextDoor <47074-AFellowSpeedrunner@users.gitlab.alpinelinux.org>
# Maintainer: NerdNextDoor <47074-AFellowSpeedrunner@users.gitlab.alpinelinux.org>
pkgname=kuroko
pkgver=1.4.0
pkgrel=0
pkgdesc="Lightweight Python dialect with explicit variables and block scoping."
url="https://github.com/kuroko-lang/kuroko"
arch="all"
license="MIT"
source="kuroko-$pkgver.tar.gz::https://github.com/kuroko-lang/kuroko/archive/refs/tags/v$pkgver.tar.gz"
subpackages="$pkgname-dev"

build() {
	# This prevents Make trying to run .krk scripts before required modules for .krk files are built when using parallel jobs.
	make -j1
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr exec_prefix=/usr bindir=/usr/bin libdir=/usr/lib install -j1
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

dev() {
	default_dev
	install -Dm755 "$builddir"/libkuroko.so -t "$subpkgdir"/usr/lib
}


sha512sums="
bdcf8f28dae7f1d704c6c74c455a34390a0aadcb41b0bfeb3c3cc7c8ee7670fc001a14e87d6912d05d72ce1f25c69bf8ff4036a45339aa48e6a94fe1ae330ff8  kuroko-1.4.0.tar.gz
"
