diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5395382210ce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Benjamin Denhartog <ben@sudoforge.com> + +# For ISSUES, REQUESTS, and QUESTIONS: +# https://github.com/sudoforge/pkgbuilds + +pkgname=buildifier-bin +pkgver=4.2.2 +pkgrel=1 +pkgdesc='A command line tool to format Bazel BUILD files' +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=('3f0e450cd852dbfd89aa2761d85f9fbeb6f0faccfc5d4fbe48952cfe0712922a' + '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}" +} |