blob: 0d58211ae01e0620dce86522d635a508963783e3 (
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
|
# Maintainer: Gleb Buzin <qufiwefefwoyn@gmail.com>
# Contributor: Vlad Frolov <frolvlad@gmail.com>
pkgname=jql
pkgver=7.1.2
pkgrel=1
pkgdesc="A JSON Query Language CLI tool"
url="https://github.com/yamafaktory/jql"
depends=('gcc-libs')
makedepends=('cargo')
arch=('i686' 'x86_64')
license=('MIT')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/yamafaktory/jql/archive/jql-v${pkgver}.tar.gz)
sha512sums=('41b9c83c6397868f4be969677a8125a3d0c1214b975618cfe6b9bf9e01caf15dd86fcfac55adf80111bbc3d1cf68755e7765d94223479adee4684fa162033f53')
build() {
cd "${pkgname}-${pkgname}-v${pkgver}"
cargo build --release --locked
}
check() {
cd "${pkgname}-${pkgname}-v${pkgver}"
cargo test --release --locked
}
package() {
cd "${pkgname}-${pkgname}-v${pkgver}"
install -Dm755 \
"target/release/jql" \
-t "${pkgdir}/usr/bin"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|