# Maintainer: Jean Lucas pkgname=tenshi-rs-git pkgver=0.2.2 pkgrel=2 pkgdesc='Unbound local-zone generator for curated hosts files (git)' arch=(aarch64 armv6h armv7h i686 x86_64) url=https://github.com/flacks/tenshi license=(GPL3) depends=(openssl) makedepends=(git cargo) optdepends=('sudo: to write to destination as another user') provides=(tenshi-rs) conflicts=(tenshi-rs) source=(git+$url) sha512sums=(SKIP) pkgver() { cd tenshi git describe --tags | sed 's#-#+#g;s#+#+r#' } build() { cd tenshi cargo build --release --locked } package() { cd tenshi install -D target/release/tenshi -t "$pkgdir"/usr/bin install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/tenshi install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/tenshi }