summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be5514fa4cd6a9f35767ed2a9039c78ef8d128fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Jean Lucas <jean@4ray.co>

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
}