[arch-commits] Commit in buildkit/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Apr 6 02:56:18 UTC 2022


    Date: Wednesday, April 6, 2022 @ 02:56:17
  Author: grawlinson
Revision: 1181567

upgpkg: buildkit 0.10.0-2; FS#74344

* Move systemd files from doc/ to proper paths.
* Ensure binaries have correct version information.

Modified:
  buildkit/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-06 00:01:33 UTC (rev 1181566)
+++ PKGBUILD	2022-04-06 02:56:17 UTC (rev 1181567)
@@ -3,7 +3,7 @@
 
 pkgname=buildkit
 pkgver=0.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A toolkit for converting source code to build artifacts in a repeatable manner'
 arch=('x86_64')
 url="https://github.com/moby/buildkit"
@@ -39,12 +39,16 @@
   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}" \
+    -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+    -X ${package}/version.Version=$pkgver \
+    -X ${package}/version.Revision=$_commit" \
     -o build \
     ./cmd/...
 }
@@ -57,6 +61,9 @@
 
   # documentation
   install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-  cp -vrt "$pkgdir/usr/share/doc/$pkgname" examples/systemd docs
-  
+  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