# Contributor: Thijs Iris Wester <wester.t@protonmail.com>
# Maintainer: Thijs Iris Wester <wester.t@protonmail.com>
pkgname=river-luatile
pkgver=0.1.3
pkgrel=0
pkgdesc="Write your own river layouts in lua"
url="https://github.com/MaxVerevkin/river-luatile"
# risvc and loongarch do not have luajit
arch="all !riscv64 !loongarch64"
license="GPL-3.0-only"
depends="luajit"
makedepends="cargo cargo-auditable luajit-dev"
source="https://github.com/MaxVerevkin/river-luatile/archive/refs/tags/v$pkgver.zip"
options="net !check" # No upstream checks

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm 755 target/release/river-luatile "$pkgdir"/usr/bin/river-luatile
}

sha512sums="
cfa0e9906a293698cae0773faf9a42b5f2cf9b29204ba1293fbf0cb1ae50157adb05e8c065a078f1e8a5cc11e7779abfdbd43ba19ff7ae7c1f9578c79b28cb16  v0.1.3.zip
"
