# Template file for 'ast-grep'
pkgname=ast-grep
version=0.40.5
revision=1
build_style=cargo
configure_args="--package=ast-grep"
short_desc="Fast and polyglot tool for code searching, linting, and rewriting"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://ast-grep.github.io"
changelog="https://raw.githubusercontent.com/ast-grep/ast-grep/main/CHANGELOG.md"
distfiles="https://github.com/ast-grep/ast-grep/archive/refs/tags/${version}.tar.gz"
checksum=59188d6e1d847cd02fb77e65a984fc7add2cbd564d4809fd6bd67f5fdeecb6b3

do_install() {
	vbin target/${RUST_TARGET}/release/ast-grep
	vlicense LICENSE
}
