summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 826b5a5aa7a1a18c80278720452fb51eaf89e15b (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 Justin Buchanan <justbuchanan@gmail.com>

pkgname=ibazel-git
pkgver=master
pkgrel=2
pkgdesc='Tool for building Bazel targets when source files change.'
arch=('i686' 'x86_64')
url=https://github.com/bazelbuild/bazel-watcher
license=('Apache 2.0')
depends=('bazel')
source=("bazel-watcher::git+$url#branch=$pkgver")
sha512sums=('SKIP')

build() {
  cd bazel-watcher
  bazel build //cmd/ibazel
}

package() {
  cd bazel-watcher
  install -Dm755 bazel-bin/cmd/ibazel/*/ibazel "$pkgdir"/usr/bin/ibazel
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/ibazel/LICENSE
}