summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Denhartog2020-05-22 06:11:54 -0700
committerBenjamin Denhartog2020-05-22 06:11:54 -0700
commitcf5ccc4015c7157a43388bea61cda524d4f72b47 (patch)
treea99a8fb94dfb505e9278ad192a78796e689f2932
downloadaur-cf5ccc4015c7157a43388bea61cda524d4f72b47.tar.gz
feat(buildozer): add source and binary packages for 'buildozer'
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore15
-rw-r--r--PKGBUILD32
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c630ae36e3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = buildozer
+ pkgdesc = A command line tool to rewrite Bazel BUILD files using standard conventions
+ pkgver = 3.0.0
+ pkgrel = 1
+ url = https://github.com/bazelbuild/buildtools
+ arch = x86_64
+ license = Apache
+ makedepends = bazel
+ makedepends = git
+ source = buildozer-3.0.0.tar.gz::https://github.com/bazelbuild/buildtools/archive/3.0.0.tar.gz
+ md5sums = aefb7ea738b12811f100b465181f2567
+
+pkgname = buildozer
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c614791f605
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+# package archives, downloaded sources
+*.tar.zst
+
+# subfolders, e.g. source and build package trees
+*/**/
+
+# backup files
+*~
+*.bak
+
+# log files from makepkg --log
+*.log
+
+# lockfiles from mkarchchroot+makepkg
+*/*.lock
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..08e8005952a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Benjamin Denhartog <ben@sudoforge.com>
+
+_pkgname=buildtools
+pkgname=buildozer
+pkgver=3.0.0
+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"
+makedepends=(
+ 'bazel'
+ 'git'
+)
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+md5sums=('aefb7ea738b12811f100b465181f2567')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ bazel build "//${pkgname}:${pkgname}-linux"
+}
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ # Install the license file
+ install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/buildozer/LICENSE"
+
+ # Install the binary
+ install -D -m 0755 \
+ "./bazel-bin/${pkgname}/${pkgname}-linux_amd64" \
+ "${pkgdir}/usr/bin/buildozer"
+}