summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f8e03466cd362abb1dba62600e2746158d1c74c (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
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=yj-rs
_pkgname=yj
pkgver=1.1.25
pkgrel=1
pkgdesc='Command line tool that converts YAML to JSON.'
arch=('i686' 'x86_64')
url="https://github.com/bruceadams/yj"
license=('Apache')
depends=()
optdepends=()
conflicts=('yj' 'yj-git' 'yj-rs-git')
makedepends=('cargo')
source=("$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('22ee4f8a4b9d853ffb931cf8532412b7db256f438e3b6952fc9481b166cb3060')

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

package() {
  install -Dm755 "$srcdir/$_pkgname-$pkgver/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}