Date: Thursday, March 3, 2022 @ 22:34:43 Author: shibumi Revision: 1141328
archrelease: copy trunk to community-x86_64 Added: pulumi/repos/community-x86_64/PKGBUILD (from rev 1141327, pulumi/trunk/PKGBUILD) Deleted: pulumi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 152 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 76 insertions(+), 76 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-03 22:34:37 UTC (rev 1141327) +++ PKGBUILD 2022-03-03 22:34:43 UTC (rev 1141328) @@ -1,76 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Christoph Gysin <christoph.gy...@gmail.com> - -pkgname=pulumi -pkgver=3.24.1 -pkgrel=1 -pkgdesc='Modern Infrastructure as Code' -arch=('x86_64') -url="https://github.com/$pkgname/$pkgname" -license=('GPL') -depends=('glibc') -makedepends=('go') -source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -sha256sums=('9afb0e7a9d0198521159f9163d63025c9ad1f87a2e2407d8221ee23e6750ee34') -b2sums=('bbee757f12bef0199bb69b9498e5332989d0a72de6ba2dfca74c2b6fa95b8236b1abaa3f1764f906093ac97e684508bdab815522e2abcc6c94fca74853c3f7ea') -options=('!lto') # disable as soon as LTO problems are resolved - -_plugins=( - "nodejs/cmd/pulumi-language-nodejs" - "python/cmd/pulumi-language-python" - "dotnet/cmd/pulumi-language-dotnet" - "go/pulumi-language-go" -) - -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - - # Build the `pulumi` executable - cd "${srcdir}/${pkgname}-${pkgver}/pkg" - go build \ - -ldflags "-X github.com/pulumi/pulumi/pkg/v${pkgver%%.*}/version.Version=${pkgver} -extldflags ${LDFLAGS}" \ - -o "${srcdir}/${pkgname}-${pkgver}/bin/${pkgname}" \ - "./cmd/${pkgname}" \ - - # Build the plugins - cd "${srcdir}/${pkgname}-${pkgver}/sdk" - for plugin in "${_plugins[@]}"; do - plugin_name=${plugin##*/} - go build \ - -ldflags "-X github.com/pulumi/pulumi/pkg/v${pkgver%%.*}/version.Version=${pkgver} -extldflags ${LDFLAGS}" \ - -o "${srcdir}/${pkgname}-${pkgver}/bin/${plugin_name}" \ - "./${plugin}" - - # Add possible executor - if [ -f "${plugin}-exec" ]; then - cp "${plugin}-exec" "${srcdir}/${pkgname}-${pkgver}/bin/" - fi - done -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - # Install all executables - for f in ./bin/*; do - install -D -m 755 "$f" "${pkgdir}/usr/bin/$(basename $f)" - done - - # Generate Bash completion - install -D -m 644 \ - <("${pkgdir}/usr/bin/${pkgname}" gen-completion bash) \ - "${pkgdir}/etc/bash_completion.d/${pkgname}" - - # Generate ZSH completion - install -D -m 644 \ - <("${pkgdir}/usr/bin/${pkgname}" gen-completion zsh) \ - "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" -} - -# vim:set ts=2 sw=2 et: Copied: pulumi/repos/community-x86_64/PKGBUILD (from rev 1141327, pulumi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-03 22:34:43 UTC (rev 1141328) @@ -0,0 +1,76 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Christoph Gysin <christoph.gy...@gmail.com> + +pkgname=pulumi +pkgver=3.25.0 +pkgrel=1 +pkgdesc='Modern Infrastructure as Code' +arch=('x86_64') +url="https://github.com/$pkgname/$pkgname" +license=('GPL') +depends=('glibc') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('a00a3104e6ecc30ff34035319cf11df1bfcb34da462965623da19e03980c1dae') +b2sums=('01828af8c275314672177ac818bcc2bbfe5a0426e5ff2142f982dd7095568bd8c3083bb8c1b171f1f8ebba10167c4def5044ae45cb03efafb95821c1dd6617ec') +options=('!lto') # disable as soon as LTO problems are resolved + +_plugins=( + "nodejs/cmd/pulumi-language-nodejs" + "python/cmd/pulumi-language-python" + "dotnet/cmd/pulumi-language-dotnet" + "go/pulumi-language-go" +) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + # Build the `pulumi` executable + cd "${srcdir}/${pkgname}-${pkgver}/pkg" + go build \ + -ldflags "-X github.com/pulumi/pulumi/pkg/v${pkgver%%.*}/version.Version=${pkgver} -extldflags ${LDFLAGS}" \ + -o "${srcdir}/${pkgname}-${pkgver}/bin/${pkgname}" \ + "./cmd/${pkgname}" \ + + # Build the plugins + cd "${srcdir}/${pkgname}-${pkgver}/sdk" + for plugin in "${_plugins[@]}"; do + plugin_name=${plugin##*/} + go build \ + -ldflags "-X github.com/pulumi/pulumi/pkg/v${pkgver%%.*}/version.Version=${pkgver} -extldflags ${LDFLAGS}" \ + -o "${srcdir}/${pkgname}-${pkgver}/bin/${plugin_name}" \ + "./${plugin}" + + # Add possible executor + if [ -f "${plugin}-exec" ]; then + cp "${plugin}-exec" "${srcdir}/${pkgname}-${pkgver}/bin/" + fi + done +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Install all executables + for f in ./bin/*; do + install -D -m 755 "$f" "${pkgdir}/usr/bin/$(basename $f)" + done + + # Generate Bash completion + install -D -m 644 \ + <("${pkgdir}/usr/bin/${pkgname}" gen-completion bash) \ + "${pkgdir}/etc/bash_completion.d/${pkgname}" + + # Generate ZSH completion + install -D -m 644 \ + <("${pkgdir}/usr/bin/${pkgname}" gen-completion zsh) \ + "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" +} + +# vim:set ts=2 sw=2 et: