summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b78d4b06413bf8660598f986e4876cc0b43ee8e4 (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: Sanpi <sanpi+aur@homecomputing.fr>
pkgname=whyq
pkgver=0.11.1
pkgrel=1
pkgdesc="jq compatible yq implementation in rust"
url="https://github.com/clux/$pkgname"
arch=("x86_64")
license=("Apache")
depends=("cargo")
source=("https://github.com/clux/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('cb6b8ae61bc3a619b9eb649003dfb08f758e6f6a8c149585d0ddaef1f2a2df55')

prepare()
{
    cd "$srcdir/$pkgname-$pkgver"

    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build()
{
    cd "$srcdir/$pkgname-$pkgver"

    cargo build --frozen --release
}

package()
{
    cd "$srcdir/$pkgname-$pkgver"

    install -Dm 755 "target/release/whyq" "$pkgdir/usr/bin/whyq"
}