summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d58d03d2b96f5a04188f7d1ddd67dd6454d39ebf (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
# Maintainer: Edoardo Rosa <edoz90 at archlinux dot info>

pkgname=jid
pkgver=0.7.6
pkgrel=1
pkgdesc='JSON incremental digger (Go installer)'
url='https://github.com/simeji/jid'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
license=('MIT')
makedepends=('go' 'git')
options=('!strip' '!emptydirs')
_gourl=github.com/simeji/jid/cmd/jid

build() {
  #     github.com/simeji/jid (download)
  #     github.com/bitly/go-simplejson (download)
  #     github.com/nsf/termbox-go (download)
  #     github.com/mattn/go-runewidth (download)
  #     github.com/pkg/errors (download)
  GOPATH="$srcdir" go get -fix -v ${_gourl}
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"

  # Package license (if available)
  for f in LICENSE COPYING LICENSE.* COPYING.*; do
    if [ -e "$srcdir/src/$_gourl/$f" ]; then
      install -Dm644 "$srcdir/src/$_gourl/$f" \
        "$pkgdir/usr/share/licenses/$pkgname/$f"
    fi
  done
}

# vim:set ts=2 sw=2 et: