summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Wicks2021-09-16 01:16:41 +0100
committerAlex Wicks2021-09-16 01:16:41 +0100
commit6729bdf3aa149de34637e2f7d69566eff5aea859 (patch)
tree31ebe59a9f1a862e071feb8bc74f587019041938
downloadaur-6729bdf3aa149de34637e2f7d69566eff5aea859.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rwxr-xr-x._buildctlbin0 -> 212 bytes
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD43
-rw-r--r--buildkit.service10
-rw-r--r--buildkit.socket10
6 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..24cb4b1fd9c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = buildkit-bin
+ pkgdesc = A toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = https://github.com/moby/buildkit
+ arch = x86_64
+ arch = armv7h
+ arch = aarch64
+ license = Apache
+ depends = runc
+ depends = containerd
+ provides = buildkit
+ conflicts = buildkit
+ source = buildkit.service
+ source = buildkit.socket
+ sha512sums = b10773a29d713f717378ef40d1d622b42939e181db255bf80e1543c67c7d7cdd6ce212bf2729c76940d9138fb0fb9af2c1a4b067951d390602d0e6b733243d9b
+ sha512sums = 5c752695cc09310d383e657b48add7f68406f54ce798285d5c073b33ff0959da99cbe4b2d7eb3a7d5c98bdf4c60d4cba27491d96dc4fb32267038d8476a62c34
+ source_x86_64 = buildkit-0.9.0.tar.gz::https://github.com/moby/buildkit/releases/download/v0.9.0/buildkit-v0.9.0.linux-amd64.tar.gz
+ sha512sums_x86_64 = 15269ea409920e24b94a634643b1d1c198d7f6738d1ffff1a378c5ca0d02f482e50711915f8d3782bdda36ae420d939c0183b54c13e450adc5c4c1d002d64e19
+ source_armv7h = buildkit-0.9.0.tar.gz::https://github.com/moby/buildkit/releases/download/v0.9.0/buildkit-v0.9.0.linux-arm-v7.tar.gz
+ sha512sums_armv7h = 6e54450569d8f8126aa50dadccf31d2d6b1085f7dbd4a5bd29b08d2b3b0c9712c6eb77d7fe4a7b5e823bd1484f45b06a8a960ff41f8adeaba3d985d3286cef58
+ source_aarch64 = buildkit-0.9.0.tar.gz::https://github.com/moby/buildkit/releases/download/v0.9.0/buildkit-v0.9.0.linux-arm64.tar.gz
+ sha512sums_aarch64 = d41f30d27ceaf7f015f742a017a67ab25c519f28f8a2cb4ed5ac7f8b797cb28dd79afc06b908ca0fce8649c060a7c1d27ab5b81352dd58c4ef437fdb5a1c05a0
+
+pkgname = buildkit-bin
diff --git a/._buildctl b/._buildctl
new file mode 100755
index 00000000000..4989d69106a
--- /dev/null
+++ b/._buildctl
Binary files differ
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f58e014cc85
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+*.tar.zst
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d279ba05e90
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Alex Wicks <alex@awicks.io>
+
+pkgname=buildkit-bin
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='A toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.'
+arch=('x86_64' 'armv7h' 'aarch64')
+url='https://github.com/moby/buildkit'
+license=('Apache')
+provides=('buildkit')
+conflicts=('buildkit')
+depends=('runc' 'containerd')
+source=('buildkit.service' 'buildkit.socket')
+source_x86_64=("buildkit-${pkgver}.tar.gz::https://github.com/moby/buildkit/releases/download/v${pkgver}/buildkit-v${pkgver}.linux-amd64.tar.gz")
+source_aarch64=("buildkit-${pkgver}.tar.gz::https://github.com/moby/buildkit/releases/download/v${pkgver}/buildkit-v${pkgver}.linux-arm64.tar.gz")
+source_armv7h=("buildkit-${pkgver}.tar.gz::https://github.com/moby/buildkit/releases/download/v${pkgver}/buildkit-v${pkgver}.linux-arm-v7.tar.gz")
+
+sha512sums=(
+ 'b10773a29d713f717378ef40d1d622b42939e181db255bf80e1543c67c7d7cdd6ce212bf2729c76940d9138fb0fb9af2c1a4b067951d390602d0e6b733243d9b'
+ '5c752695cc09310d383e657b48add7f68406f54ce798285d5c073b33ff0959da99cbe4b2d7eb3a7d5c98bdf4c60d4cba27491d96dc4fb32267038d8476a62c34'
+)
+sha512sums_x86_64=('15269ea409920e24b94a634643b1d1c198d7f6738d1ffff1a378c5ca0d02f482e50711915f8d3782bdda36ae420d939c0183b54c13e450adc5c4c1d002d64e19')
+sha512sums_aarch64=('d41f30d27ceaf7f015f742a017a67ab25c519f28f8a2cb4ed5ac7f8b797cb28dd79afc06b908ca0fce8649c060a7c1d27ab5b81352dd58c4ef437fdb5a1c05a0')
+sha512sums_armv7h=('6e54450569d8f8126aa50dadccf31d2d6b1085f7dbd4a5bd29b08d2b3b0c9712c6eb77d7fe4a7b5e823bd1484f45b06a8a960ff41f8adeaba3d985d3286cef58')
+
+package() {
+ install -Dm755 "${srcdir}/bin/buildctl" "${pkgdir}/usr/bin/buildctl"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkitd"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-aarch64"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-arm"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-i386"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-mips64"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-mips64el"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-ppc64le"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-riscv64"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-qemu-s390x"
+ install -Dm755 "${srcdir}/bin/buildkitd" "${pkgdir}/usr/bin/buildkit-runc"
+
+ install -Dm644 "${srcdir}/buildkit.service" "${pkgdir}/usr/lib/systemd/system/buildkit.service"
+ install -Dm644 "${srcdir}/buildkit.socket" "${pkgdir}/usr/lib/systemd/system/buildkit.socket"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/buildkit.service b/buildkit.service
new file mode 100644
index 00000000000..0efa65c6aa3
--- /dev/null
+++ b/buildkit.service
@@ -0,0 +1,10 @@
+# https://github.com/moby/buildkit/issues/1793#issuecomment-727535402
+[Unit]
+Description=BuildKit
+Documentation=https://github.com/moby/buildkit
+
+[Service]
+ExecStart=/usr/bin/buildkitd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/buildkit.socket b/buildkit.socket
new file mode 100644
index 00000000000..3666344fef0
--- /dev/null
+++ b/buildkit.socket
@@ -0,0 +1,10 @@
+# https://github.com/moby/buildkit/issues/1793#issuecomment-743727939
+[Unit]
+Description=BuildKit
+Documentation=https://github.com/moby/buildkit
+
+[Socket]
+ListenStream=%t/buildkit/buildkitd.sock
+
+[Install]
+WantedBy=sockets.target