blob: b75433c3568610687121b4ad989a97ddc3087dac (
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: Benjamin Denhartog <ben@sudoforge.com>
# For ISSUES, REQUESTS, and QUESTIONS:
# https://github.com/sudoforge/pkgbuilds
pkgname=buildozer-bin
pkgver=4.2.5
pkgrel=1
pkgdesc='A command line tool to rewrite Bazel BUILD files using standard conventions'
arch=('x86_64')
license=('Apache')
url='https://github.com/bazelbuild/buildtools'
source=(
"${pkgname%-bin}-${pkgver}::${url}/releases/download/${pkgver}/${pkgname%-bin}-linux-amd64"
"LICENSE-${pkgver}::https://raw.githubusercontent.com/bazelbuild/buildtools/${pkgver}/LICENSE"
)
sha256sums=('e8e39b71c52318a9030dd9fcb9bbfd968d0e03e59268c60b489e6e6fc1595d7b'
'cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30')
package() {
cd "${srcdir}"
# Install the license file
install -D -m 0644 \
"${source[1]%%::*}" \
"${pkgdir}/usr/share/licenses/${pkgname%-bin}/LICENSE"
# Install the binary
install -D -m 0755 \
"./${source[0]%%::*}" \
"${pkgdir}/usr/bin/${pkgname%-bin}"
}
|