# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=sad pkgver=0.4.22 pkgrel=1 pkgdesc="CLI search and replace - a batch file edit tool" url="https://github.com/ms-jpq/sad" arch="all" license="MIT" makedepends="cargo cargo-auditable" source="https://github.com/ms-jpq/sad/archive/v$pkgver/sad-$pkgver.tar.gz" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -D -m755 target/release/sad -t "$pkgdir"/usr/bin/ } sha512sums=" 0bb2871d6ebfd03b37f46af806a5255becba79f893adf8cb0935fe3786c647848d8789f2be0c474dc4b66d5947586b5b8b09a82a26e9b3462f3a01d32fc20371 sad-0.4.22.tar.gz "