[arch-commits] Commit in buildkit/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri May 6 21:48:16 UTC 2022
Date: Friday, May 6, 2022 @ 21:48:16
Author: grawlinson
Revision: 1196074
archrelease: copy trunk to community-x86_64
Added:
buildkit/repos/community-x86_64/PKGBUILD
(from rev 1196072, buildkit/trunk/PKGBUILD)
Deleted:
buildkit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 146 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 73 insertions(+), 73 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-06 21:48:15 UTC (rev 1196073)
+++ PKGBUILD 2022-05-06 21:48:16 UTC (rev 1196074)
@@ -1,73 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Kenneth Endfinger <kaendfinger at gmail.com>
-
-pkgname=buildkit
-pkgver=0.10.2
-pkgrel=1
-pkgdesc='A toolkit for converting source code to build artifacts in a repeatable manner'
-arch=('x86_64')
-url='https://github.com/moby/buildkit'
-license=('Apache')
-depends=('runc' 'containerd')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='9d2c9b25145ff021f91374408be710938297ba24'
-source=("$pkgname::git+$url.git#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- # ignore docker tags
- git describe --tags --exclude 'dockerfile*' | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgname"
-
- # fix paths in systemd unit files
- sed -i 's:/usr/local:/usr:' \
- examples/systemd/{system,user}/*.service
-
- # create directory for build output
- mkdir build
-
- # download dependencies
- go mod download
-}
-
-build() {
- cd "$pkgname"
-
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- local package='github.com/moby/buildkit'
-
- go build -v \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags ${LDFLAGS} \
- -X ${package}/version.Version=$pkgver \
- -X ${package}/version.Revision=$_commit" \
- -o build \
- ./cmd/...
-}
-
-package() {
- cd "$pkgname"
-
- # binaries
- install -vDm755 -t "$pkgdir/usr/bin" build/*
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
- cp -vrt "$pkgdir/usr/share/doc/$pkgname" docs
-
- # systemd integration
- install -vDm644 -t "$pkgdir/usr/lib/systemd/system" examples/systemd/system/*
- install -vDm644 -t "$pkgdir/usr/lib/systemd/user" examples/systemd/user/*
-}
Copied: buildkit/repos/community-x86_64/PKGBUILD (from rev 1196072, buildkit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-06 21:48:16 UTC (rev 1196074)
@@ -0,0 +1,73 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Kenneth Endfinger <kaendfinger at gmail.com>
+
+pkgname=buildkit
+pkgver=0.10.3
+pkgrel=1
+pkgdesc='A toolkit for converting source code to build artifacts in a repeatable manner'
+arch=('x86_64')
+url='https://github.com/moby/buildkit'
+license=('Apache')
+depends=('runc' 'containerd')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='c8d25d9a103b70dc300a4fd55e7e576472284e31'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ # ignore docker tags
+ git describe --tags --exclude 'dockerfile*' | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # fix paths in systemd unit files
+ sed -i 's:/usr/local:/usr:' \
+ examples/systemd/{system,user}/*.service
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+
+ local package='github.com/moby/buildkit'
+
+ go build -v \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+ -X ${package}/version.Version=$pkgver \
+ -X ${package}/version.Revision=$_commit" \
+ -o build \
+ ./cmd/...
+}
+
+package() {
+ cd "$pkgname"
+
+ # binaries
+ install -vDm755 -t "$pkgdir/usr/bin" build/*
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ cp -vrt "$pkgdir/usr/share/doc/$pkgname" docs
+
+ # systemd integration
+ install -vDm644 -t "$pkgdir/usr/lib/systemd/system" examples/systemd/system/*
+ install -vDm644 -t "$pkgdir/usr/lib/systemd/user" examples/systemd/user/*
+}
More information about the arch-commits
mailing list