Date: Sunday, May 15, 2022 @ 13:22:58 Author: shibumi Revision: 1207403
archrelease: copy trunk to community-x86_64 Added: pulumi/repos/community-x86_64/PKGBUILD (from rev 1207402, pulumi/trunk/PKGBUILD) Deleted: pulumi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 152 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 76 insertions(+), 76 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-05-15 13:22:49 UTC (rev 1207402) +++ PKGBUILD 2022-05-15 13:22:58 UTC (rev 1207403) @@ -1,76 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Christoph Gysin <christoph.gy...@gmail.com> - -pkgname=pulumi -pkgver=3.28.0 -pkgrel=2 -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=('6bb8896ac60ba4c5a96c2eb883ddc390ac078a655c5ff43ebcaafe7d5ace55b9') -b2sums=('5026aa2e1d6b4f65bb3b9bab571eff313d84e1e51e64e4744abc5eb8b2935cfc4c89dda69f5b3971a21d392cfce98aff37943513b0844d3a18f4498bb41344cd') -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 1207402, pulumi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-05-15 13:22:58 UTC (rev 1207403) @@ -0,0 +1,76 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Christoph Gysin <christoph.gy...@gmail.com> + +pkgname=pulumi +pkgver=3.32.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=('3470a8a3bbc37379a90f2d19d00646cd361ead8e51b3578a9d5ba886c7eca987') +b2sums=('a90cc6330d80f90a214d1dd4078374872fdd19b09029a293d1d9d2e4159bef51a0aa2ae5293e77d58be49fb8aeacf7c626534b9883bcea5d777cc82d4f366768') +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: