# Template file for 'snx-rs'
pkgname=snx-rs
version=6.2.4
revision=1
build_style=cargo
configure_args="--package snx-rs --package snxctl"
make_check_args="--package snx-rs --package snxctl"
hostmakedepends="pkg-config"
makedepends="openssl-devel sqlite-devel"
short_desc="Open Source Client For Check Point VPN Tunnels (CLI only)"
maintainer="Salvatore Stella <salvatore.stella@univaq.it>"
license="AGPL-3.0-only"
homepage="https://github.com/ancwrd1/snx-rs"
changelog="https://raw.githubusercontent.com/ancwrd1/snx-rs/refs/heads/main/CHANGELOG.md"
distfiles="https://github.com/ancwrd1/snx-rs/archive/refs/tags/v${version}.tar.gz"
checksum=37f367ef8798dc810db57729acf40bd7696cb74144311a190070e159f4de6d7d

post_install() {
	vlicense COPYING
}

do_install() {
	vbin target/${RUST_TARGET}/release/snx-rs
	vbin target/${RUST_TARGET}/release/snxctl
}
