summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05e5faadcbbbeeea7335fecb0ca840643f2ba811 (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
# Maintainer: Ildus Kurbangaliev <i.kurbangaliev@gmail.com>
# Contributor: Steffen Jaeckel <jaeckel-floss@eyet-services.de>

pkgname=verible-bin
pkgver=0.0.3724
pkgrel=1
pkgdesc='SystemVerilog parser, linter, formatter and etc from Google'
arch=('x86_64' 'aarch64')
url='https://github.com/google/verible'
license=('Apache License 2.0')
provides=('verible')
makedepends=('jq' 'wget')

source=("https://api.github.com/repos/chipsalliance/verible/releases/latest")
sha512sums=('SKIP')

prepare() {
  jq ".assets[].browser_download_url | select(contains(\"${CARCH}\"))" latest \
	| xargs wget -O - \
	| tar -xz
}

pkgver() {
  cat latest | jq '.tag_name' | grep -Eo '([0-9\.]+\-[0-9]+)' | tr '\-' '.'
}

package() {
  part=$(cat latest | jq '.tag_name' | grep -Eo '[^"]+')
  cd $srcdir/verible-${part}
  mkdir -p $pkgdir/usr/

  cp -R bin $pkgdir/usr/
}