Date: Tuesday, September 28, 2021 @ 12:12:48 Author: shibumi Revision: 1025864
archrelease: copy trunk to community-x86_64 Added: pulumi/repos/community-x86_64/PKGBUILD (from rev 1025863, pulumi/trunk/PKGBUILD) Deleted: pulumi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 150 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-09-28 12:12:43 UTC (rev 1025863) +++ PKGBUILD 2021-09-28 12:12:48 UTC (rev 1025864) @@ -1,75 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Christoph Gysin <christoph.gy...@gmail.com> - -pkgname=pulumi -pkgver=3.13.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=('d5bff2d8d613725ff97feef108412f313acd967d9244cd38f39c1bd273652292') -b2sums=('ace46d0ebf2c82c045fc7fe975cfccffb658c3f9ad8f0f9dd9e90292c90c6753ac45024d629fb8ca3829b16d6980a3cbc732259c94bca6af2933a9bde541befe') - -_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 1025863, pulumi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-09-28 12:12:48 UTC (rev 1025864) @@ -0,0 +1,75 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Christoph Gysin <christoph.gy...@gmail.com> + +pkgname=pulumi +pkgver=3.13.2 +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=('cb1cd0f6cf3b6cc941a554751d6c70559620dc6a89b66754f289e7d4a6445e47') +b2sums=('e4c1841f9df4a55cde71a59a29a214c25d60c5e94d6b7284dedf8484c00cd7abe14de506ebc9098c974e136924d2c304f69f839c9272b30ff43d414754520dfc') + +_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: