summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47032096dec2ed2413ba52dc971147abefe1d532 (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
# Maintainer: Baz <github(a)luxolus.com>

pkgname=jaesve-git
_pkgname=jaesve
pkgver=1.3.3
pkgrel=4
pkgdesc="A CLI utility for stream converting JSON objects to a series of CSV values"
url="https://github.com/bazaah/jaesve"
license=("MIT")
source=("git+https://github.com/bazaah/jaesve")
md5sums=('SKIP')
arch=('x86_64')
makedepends=('rustup')

prepare () {
    cd "$_pkgname"
    git checkout --quiet master
    rustup override set 1.39.0
}

build() {
    cd "$_pkgname"
    cargo build --release --locked
}

check() {
   cd "$_pkgname"
   cargo test --release --locked
}

package() {
   cd "$_pkgname"
   install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin"
}