[arch-commits] Commit in pulumi/repos/community-x86_64 (PKGBUILD PKGBUILD)
Christian Rebischke
shibumi at gemini.archlinux.org
Sat Jan 15 06:02:56 UTC 2022
Date: Saturday, January 15, 2022 @ 06:02:55
Author: shibumi
Revision: 1104089
archrelease: copy trunk to community-x86_64
Added:
pulumi/repos/community-x86_64/PKGBUILD
(from rev 1104088, pulumi/trunk/PKGBUILD)
Deleted:
pulumi/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 152 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 76 insertions(+), 76 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-15 06:00:42 UTC (rev 1104088)
+++ PKGBUILD 2022-01-15 06:02:55 UTC (rev 1104089)
@@ -1,76 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Contributor: Christoph Gysin <christoph.gysin at gmail.com>
-
-pkgname=pulumi
-pkgver=3.22.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=('06850b18b180c3c951a55b3ba7e3adc70816ca31bca4d4ee05eab0dd4b519db6')
-b2sums=('816ffb88c19aab5261c158ca97491a76abef1f0a7146f9c01b6656663df24faf7690addcff04e0ea89dbdbbcc4cff6077a650cfb76dc1e642a584b021f2d4e7c')
-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 1104088, pulumi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-15 06:02:55 UTC (rev 1104089)
@@ -0,0 +1,76 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Christoph Gysin <christoph.gysin at gmail.com>
+
+pkgname=pulumi
+pkgver=3.22.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=('06850b18b180c3c951a55b3ba7e3adc70816ca31bca4d4ee05eab0dd4b519db6')
+b2sums=('816ffb88c19aab5261c158ca97491a76abef1f0a7146f9c01b6656663df24faf7690addcff04e0ea89dbdbbcc4cff6077a650cfb76dc1e642a584b021f2d4e7c')
+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:
More information about the arch-commits
mailing list