[arch-commits] Commit in dagger/repos (community-x86_64 community-x86_64/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Sat Apr 30 08:37:03 UTC 2022


    Date: Saturday, April 30, 2022 @ 08:37:03
  Author: grawlinson
Revision: 1191871

archrelease: copy trunk to community-x86_64

Added:
  dagger/repos/community-x86_64/
  dagger/repos/community-x86_64/PKGBUILD
    (from rev 1191870, dagger/trunk/PKGBUILD)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Copied: dagger/repos/community-x86_64/PKGBUILD (from rev 1191870, dagger/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-04-30 08:37:03 UTC (rev 1191871)
@@ -0,0 +1,63 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=dagger
+pkgver=0.2.8
+pkgrel=2
+pkgdesc='A portable devkit for CI/CD pipelines'
+arch=('x86_64')
+url='https://dagger.io'
+license=('Apache')
+depends=('glibc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='92c8c7a2da9ec90a924d7236e540f83ec1f12419'
+source=("$pkgname::git+https://github.com/dagger/dagger.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # create directory for build output
+  mkdir build
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+  cd "$pkgname"
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags $LDFLAGS \
+    -X go.dagger.io/dagger/version.Revision=$_commit \
+    -X go.dagger.io/dagger/version.Version=$pkgver" \
+    -o build \
+    ./cmd/...
+}
+
+check() {
+  cd "$pkgname"
+
+  go test -v ./...
+}
+
+package() {
+  cd "$pkgname"
+
+  install -vDm755 -t "$pkgdir/usr/bin" build/dagger
+}



More information about the arch-commits mailing list