1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
6 pkgdesc='A portable devkit for CI/CD pipelines'
8 url='https://dagger.io'
11 makedepends=('git' 'go')
13 _commit='00540aab79993e33bb76933edbb174db1d06a87e'
14 source=("$pkgname::git+https://github.com/dagger/dagger.git#commit=$_commit")
20 git describe --tags | sed 's/^v//'
26 # create directory for build output
29 # download dependencies
30 export GOPATH="${srcdir}"
38 export CGO_CPPFLAGS="${CPPFLAGS}"
39 export CGO_CFLAGS="${CFLAGS}"
40 export CGO_CXXFLAGS="${CXXFLAGS}"
41 export GOPATH="${srcdir}"
47 -ldflags "-compressdwarf=false \
49 -extldflags ${LDFLAGS} \
50 -X go.dagger.io/dagger/version.Revision=$_commit \
51 -X go.dagger.io/dagger/version.Version=$pkgver" \
57 # TODO tests now require docker *kicks docker*
67 install -vDm755 -t "$pkgdir/usr/bin" build/dagger