archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / rhit / trunk / PKGBUILD
blob441400e6dece52cceaad9b4d86b9c455d9a2cbba
1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 pkgname=rhit
4 pkgver=1.7.2
5 pkgrel=1
6 pkgdesc="A nginx log explorer"
7 arch=('x86_64')
8 url="https://github.com/Canop/rhit"
9 license=('MIT')
10 depends=('gcc-libs')
11 makedepends=('cargo')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
13 sha512sums=('a9e473047c84f8142d2f099a13fab5e700c99a0175d82b1ce4b62b95b7d6d653d7e1fc85d4532eaf90b646ae2f913486e5a42b21646c5af36002e99d4a1084e4')
15 prepare() {
16   cd "$pkgname-$pkgver"
17   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
20 build() {
21   cd "$pkgname-$pkgver"
22   cargo build --release --frozen
25 check() {
26   cd "$pkgname-$pkgver"
27   cargo test --frozen
30 package() {
31   cd "$pkgname-$pkgver"
32   install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
33   install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
34   install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
37 # vim: ts=2 sw=2 et: