[arch-commits] Commit in pulumi/repos/community-x86_64 (PKGBUILD PKGBUILD)
Christian Rebischke
shibumi at gemini.archlinux.org
Mon Jan 3 06:17:44 UTC 2022
Date: Monday, January 3, 2022 @ 06:17:44
Author: shibumi
Revision: 1092269
archrelease: copy trunk to community-x86_64
Added:
pulumi/repos/community-x86_64/PKGBUILD
(from rev 1092268, pulumi/trunk/PKGBUILD)
Deleted:
pulumi/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 151 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 76 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-03 06:17:38 UTC (rev 1092268)
+++ PKGBUILD 2022-01-03 06:17:44 UTC (rev 1092269)
@@ -1,75 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Contributor: Christoph Gysin <christoph.gysin at gmail.com>
-
-pkgname=pulumi
-pkgver=3.20.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=('5e0b38bba454487df256f7bae2cb010f3f25aac1c219dc320cb320c215945e43')
-b2sums=('ad093828813da7708c280359b25f3f865197dd9daa58c0d8fb7149b71b8705ea92085abc774b09c4068fe96fca41f03e33f78f1b3475e90d94f3a3aa3a2fa46f')
-
-_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 1092268, pulumi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-03 06:17:44 UTC (rev 1092269)
@@ -0,0 +1,76 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Christoph Gysin <christoph.gysin at gmail.com>
+
+pkgname=pulumi
+pkgver=3.21.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=('afd7eeb4a147ae801d8b12f770fc5c7301b7246207081fb289082af7b289caaa')
+b2sums=('a076c1b0ae8e786cbd11203676ad13b4b635eeaa83c3e267254548c0a89f06077338d4c0fb5aa2995035b37c93c67a4de741c0521f2bdc445ddec7eebb66ca40')
+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