Date: Saturday, November 20, 2021 @ 01:05:33 Author: shibumi Revision: 1052818
archrelease: copy trunk to community-x86_64 Added: pulumi/repos/community-x86_64/PKGBUILD (from rev 1052817, pulumi/trunk/PKGBUILD) Deleted: pulumi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 150 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 75 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-11-20 01:05:27 UTC (rev 1052817) +++ PKGBUILD 2021-11-20 01:05:33 UTC (rev 1052818) @@ -1,75 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> -# Contributor: Christoph Gysin <christoph.gy...@gmail.com> - -pkgname=pulumi -pkgver=3.17.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=('632ff8b6bac8d7ddfb2258753565a462a7a00f2f4dd99a9eddb86689ee48e992') -b2sums=('329fbeee82fdd96bc91ae4c0e16019ea44124f9112c03c7495673c6cc6f20899b8885adf479f19dec56ccb3292995644b505879ae0e558c790b44888f24f28c0') - -_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 1052817, pulumi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-11-20 01:05:33 UTC (rev 1052818) @@ -0,0 +1,75 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Christoph Gysin <christoph.gy...@gmail.com> + +pkgname=pulumi +pkgver=3.18.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=('3547f5a0223e1f2aafa79898f4d72dc433e15b9000714023ecf84d225bd74fa7') +b2sums=('5eb2fba1ba84ad2eb244b2c8b0ad6feca7096d4ef8ae2e236f74b503edeab10fd0dc14063213cafb2abd8b4734a0645dabe481e507fe2bc5968cf95284902bb3') + +_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: