diff options
author | Wesley Moore | 2020-09-05 09:05:30 +1000 |
---|---|---|
committer | Wesley Moore | 2020-09-05 09:05:30 +1000 |
commit | 808865c451541437e7f9a71028e782e4a033dd64 (patch) | |
tree | 8b5e5c650e56d63a4a1373c0410aad6a6705a51b | |
download | aur-808865c451541437e7f9a71028e782e4a033dd64.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2b0846b8511a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = yj-rs + pkgdesc = Command line tool that converts YAML to JSON. + pkgver = 1.1.25 + pkgrel = 1 + url = https://github.com/bruceadams/yj + arch = i686 + arch = x86_64 + license = Apache + makedepends = cargo + conflicts = yj + conflicts = yj-git + conflicts = yj-rs-git + source = 1.1.25.tar.gz::https://github.com/bruceadams/yj/archive/1.1.25.tar.gz + sha256sums = 22ee4f8a4b9d853ffb931cf8532412b7db256f438e3b6952fc9481b166cb3060 + +pkgname = yj-rs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7f8e03466cd3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |