blob: d0105c45878b26101edd16440195da9cb2f51e7d (
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
39
|
# Maintainer: Duologic <jeroen@simplsitic.be>
pkgname=jrsonnet-git
pkgver=v0.5.0.pre95.test.r58.gc9696b8
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://github.com/CertainLach/jrsonnet"
license=('MIT')
depends=()
makedepends=('cargo')
source=("git+https://github.com/CertainLach/jrsonnet.git#branch=master")
sha512sums=('SKIP')
provides=(jrsonnet)
conflicts=(jrsonnet)
pkgver() {
cd "$srcdir/jrsonnet"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/jrsonnet"
cargo build --release --locked --features legacy-this-file
}
check() {
cd "$srcdir/jrsonnet"
cargo test --release --locked --features legacy-this-file
}
package() {
cd "$srcdir/jrsonnet"
install -Dm755 "target/release/jrsonnet" "$pkgdir/usr/bin/jrsonnet"
}
|