summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4e743f1f97680a98951179d7843d20c807dbddc (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
# Maintainer: Edoardo Rosa <edoardo dot rosa 90 at gmail dot com>

pkgname=jiq
pkgver=0.7.1
pkgrel=1
pkgdesc='jid on jq'
url='https://github.com/fiatjaf/jiq'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
license=('MIT')
depends=('jq')
makedepends=('go' 'git')
options=('!strip' '!emptydirs')
_gourl=github.com/fiatjaf/jiq/cmd/jiq

build() {
  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: