diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 18 insertions, 17 deletions
@@ -1,17 +1,14 @@ pkgbase = bazel-buildtools pkgdesc = Developer tools for working with Google's bazel buildtool. pkgver = 2.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/bazelbuild/buildtools arch = x86_64 license = Apache - optdepends = bazel: the build tool to work with - source = https://github.com/bazelbuild/buildtools/releases/download/2.2.0/buildifier - source = https://github.com/bazelbuild/buildtools/releases/download/2.2.0/buildozer - source = https://github.com/bazelbuild/buildtools/releases/download/2.2.0/unused_deps - sha256sums = 4a1f6d5388175ed4ef41376b0532917e2bc179318921ad01d8d0edf7b09ec603 - sha256sums = 1fec52159253694e012ec1ce81675a8b8118abf04b40825c27f26fa920bd4bbc - sha256sums = 2c2a8774730e71a0303b618f2ee56d97330b6e8f7704a206e5ffa1be71c7c9ca + makedepends = bazel + makedepends = git + source = https://github.com/bazelbuild/buildtools/archive/2.2.0.tar.gz + sha256sums = 069617be63d72c2c70a14d832102a98d65fe12e02661f7c42797bc390c80017f pkgname = bazel-buildtools @@ -3,20 +3,24 @@ pkgname=bazel-buildtools pkgver=2.2.0 -pkgrel=1 +pkgrel=2 arch=('x86_64') url='https://github.com/bazelbuild/buildtools' license=('Apache') pkgdesc="Developer tools for working with Google's bazel buildtool." -optdepends=('bazel: the build tool to work with') -source=("https://github.com/bazelbuild/buildtools/releases/download/$pkgver/buildifier" - "https://github.com/bazelbuild/buildtools/releases/download/$pkgver/buildozer" - "https://github.com/bazelbuild/buildtools/releases/download/$pkgver/unused_deps") +makedepends=("bazel" "git") + +source=("$url/archive/$pkgver.tar.gz") +sha256sums=("069617be63d72c2c70a14d832102a98d65fe12e02661f7c42797bc390c80017f") + +build() { + cd buildtools-$pkgver + bazel build //buildifier //buildozer //unused_deps +} + package() { + cd buildtools-$pkgver install -d "$pkgdir"/usr/bin - install -Dm755 buildifier buildozer unused_deps $pkgdir/usr/bin/ + install -Dm755 bazel-bin/buildifier/*/buildifier bazel-bin/buildozer/*/buildozer bazel-bin/unused_deps/*/unused_deps $pkgdir/usr/bin/ } -sha256sums=('4a1f6d5388175ed4ef41376b0532917e2bc179318921ad01d8d0edf7b09ec603' - '1fec52159253694e012ec1ce81675a8b8118abf04b40825c27f26fa920bd4bbc' - '2c2a8774730e71a0303b618f2ee56d97330b6e8f7704a206e5ffa1be71c7c9ca') |