Date: Thursday, October 21, 2021 @ 22:41:14 Author: shibumi Revision: 1032090
archrelease: copy trunk to community-x86_64 Added: pulumi/repos/community-x86_64/PKGBUILD (from rev 1032089, pulumi/trunk/PKGBUILD) Deleted: pulumi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 150 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-10-21 22:41:06 UTC (rev 1032089) +++ PKGBUILD 2021-10-21 22:41:14 UTC (rev 1032090) @@ -1,75 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Christoph Gysin <christoph.gy...@gmail.com> - -pkgname=pulumi -pkgver=3.15.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=('fe966b5f2536c21d3ba6e45f86641205ce5a1a122e99604382f85dbf27f5e53a') -b2sums=('cc08d7304d8d02cde17ce52d240520cddbdd140146f5ddf8d12a6cd0af071270432702c898f09a1a8e3edd6153b19b983a97e073ebb25ceaec9166bc6a49a66b') - -_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 1032089, pulumi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-10-21 22:41:14 UTC (rev 1032090) @@ -0,0 +1,75 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Christoph Gysin <christoph.gy...@gmail.com> + +pkgname=pulumi +pkgver=3.16.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=('1126b732da8b23b2d44e685e27823a75d0997fea6967fd5df7e2127518af5a83') +b2sums=('0ecdd3ba131bb9c602402d3f6192a74f8688797eece3ebec3708ab84724d445b5e3d193c194d6f759176f7b7d737d18bc65948d03e17f6b45a615b05a599271b') + +_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: