summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 099efe44fb63ed02afbc4395dfc79d1ae5f10c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: xotkot
# Contributor: Shayne Hartford <shayneehartford@gmail.com>

pkgname=jj-bin
_pkgname=jj
pkgver=1.9.2
pkgrel=3
pkgdesc="JSON Stream Editor (command line utility)"
arch=('x86_64')
license=('MIT')
url="https://github.com/tidwall/jj"
source=("$url/raw/master/LICENSE"
        "$url/releases/download/v$pkgver/$_pkgname-$pkgver-linux-amd64.tar.gz")
b2sums=('362bfbf974e40ad4d1b2c6997de0458cda2334cbca7e1659fede9d5e50d6e2f8cf0762b2a49ab4cf8044fdecd3517682d08f9bc79c0ca2b525c9a7639b154d57'
        '06f4d1c841db44a4aef0b14bffff4207decda2111448b683e6c8f11b72588b70154a68f7b1ad1bbe4a843ff5890c1adda5966a59a414f7f6d74daefc878e33a2')

package() {
    cd "$srcdir"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"

    cd "$srcdir/$_pkgname-$pkgver-linux-amd64"
	install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
}