maintainer="Michał Polański <michal@polanski.me>"
pkgname=dysk
pkgver=2.10.1
pkgrel=0
pkgdesc="Get information on your mounted disks"
url="https://github.com/Canop/dysk"
license="MIT"
arch="all"
makedepends="cargo cargo-auditable"
source="https://github.com/Canop/dysk/archive/v$pkgver/dysk-$pkgver.tar.gz"
options="net" # cargo fetch

prepare() {
	default_prepare

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

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

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/dysk -t "$pkgdir"/usr/bin/
}

sha512sums="
b64ade755b848739deb973cb02016ca4ae61006ed41a8a898d1893f9a335bb707062a35cbd4050a58ad42ff5037069e32a0f35fe692913ddd1cabe27684fdc8e  dysk-2.10.1.tar.gz
"
