blob: 754aac25b7f8bcf3aa8e957fdf17135794cb2fa7 (
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
|
# Maintainer: Jean Lucas <jean@4ray.co>
pkgname=tenshi-rs-git
pkgver=0.2.0
pkgrel=1
pkgdesc='Unbound local-zone generator for curated hosts files (git)'
arch=(aarch64 arm armv6h armv7h i686 x86_64)
url=https://github.com/flacks/tenshi
license=(GPL3)
makedepends=(git rust)
optdepends=('sudo: to write to destination as superuser')
provides=(tenshi-rs)
conflicts=(tenshi-rs)
source=(git+$url)
sha512sums=(SKIP)
pkgver() {
cd tenshi
git describe --tags | sed 's#-#+#g'
}
build() {
cd tenshi
cargo build --release --locked
}
package() {
cd tenshi
install -D target/release/tenshi "$pkgdir"/usr/bin/tenshi-rs
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/tenshi-rs
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/tenshi-rs
}
|