# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=tauri-cli
pkgver=1.6.2
pkgrel=0
pkgdesc="Tauri cargo cli tool"
url="https://github.com/tauri-apps/tauri"
# tauri doesn't support the others anyway
arch="aarch64 armv7 x86 x86_64"
license="Apache-2.0 OR MIT"
makedepends="
	bzip2-dev
	cargo
	cargo-auditable
	openssl-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/tauri-apps/tauri/releases/download/tauri-cli-v$pkgver/tauri-cli-$pkgver.crate"
options="net !check" # no tests


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

build() {
	cargo auditable build --release --frozen --no-default-features --features "native-tls"
}

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

sha512sums="
8b9bdb1122962abee1e6192237d82ce567887edba00df0400317c3938c5239106f82acbcbd5cf8267641ba70d9899b577cde036cb4b710a0c0035fc8d92f4ab5  tauri-cli-1.6.2.tar.gz
"
