blob: 99f3076f31e0dc6cbae802e5477e12e7728aa693 (
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
34
35
36
37
38
|
# Maintainer: Kemel Zaidan <kemelzaidan@gmail.com>
pkgname=logria
_pkgname=Logria
pkgver=0.4.1
pkgrel=1
url="https://github.com/ReagentX/Logria"
makedepends=('rust' 'cargo')
depends=('glibc' 'gcc-libs')
arch=('i686' 'x86_64' 'aarch64')
pkgdesc="A powerful CLI tool that puts log analytics at your fingertips."
license=('GPL-3.0-only')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('168a007f83b00c773694ec018a2c94010c45f45b0afb94efa1385821f58dfae6')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "${_pkgname}-${pkgver}"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "${_pkgname}-${pkgver}"
cargo build --frozen --release --all-features
}
check(){
export RUSTUP_TOOLCHAIN=stable
cd "${_pkgname}-${pkgver}"
cargo test --frozen --all-features
}
package() {
install -Dm 755 "$srcdir/${_pkgname}-${pkgver}/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
# GPL licences are provided in the /usr/share/licenses/spdx:
# https://wiki.archlinux.org/title/PKGBUILD#license
}
|