# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=ripdrag
pkgver=0.4.10
pkgrel=0
pkgdesc="Drag and Drop utilty written in Rust and GTK4"
url="https://github.com/nik012003/ripdrag"
# loongarch64: blocked by libc crate
arch="all !loongarch64"
license="GPL-3.0-only"
makedepends="
	cargo
	cargo-auditable
	gtk4.0-dev
"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/nik012003/ripdrag/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # no tests

prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

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

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

sha512sums="
0046964b342715f9102f92951b4819bdf5d57674d83fffc0e97361e1dafa13af168660a5fdb74fc6c48828a659f0c2803cb8811d479328d853deb0d0a424d1ba  ripdrag-0.4.10.tar.gz
"
