New paste Repaste Download
# Maintainer: Ben Woodward <ben@benwoodward.me.uk>
pkgname=pulumi-language-java
_reponame=pulumi-java
pkgver=1.0.0
pkgrel=1
pkgdesc='Modern Infrastructure as Code (YAML provider)'
arch=('x86_64')
url="https://github.com/pulumi/$_reponame"
license=('Apache')
depends=('glibc')
makedepends=('go')
source=("$_reponame-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('ad94a2f09d0d08657ea43ead9ee46ffbab15e8c4348029e5c21b719eb15a761d')
options=('!lto') # disable as soon as LTO problems are resolved
build() {
  cd "${srcdir}/${_reponame}-${pkgver}/pkg"
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  # Build the `pulumi-language-java` executable
  go build \
    -ldflags "-X github.com/pulumi/${_reponame}/pkg/v${pkgver%%.*}/version.Version=${pkgver}" \
    -o "${srcdir}/${_reponame}-${pkgver}/bin/${pkgname}" \
    "./cmd/${pkgname}"
}
package() {
  cd "${srcdir}/${_reponame}-${pkgver}"
  # Install the executable
  install -D -m 755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
# vim:set ts=2 sw=2 et:
Filename: PKGBUILD. Size: 1kb. View raw, , hex, or download this file.
pkgbase = pulumi-language-java
pkgdesc = Modern Infrastructure as Code (YAML provider)
pkgver = 1.0.0
pkgrel = 1
url = https://github.com/pulumi/pulumi-java
arch = x86_64
license = Apache
makedepends = go
depends = glibc
options = !lto
source = pulumi-java-1.0.0.tar.gz::https://github.com/pulumi/pulumi-java/archive/v1.0.0.tar.gz
sha256sums = 8a5376c557fcdd2396bcca9177d8fbdfcbdfc2a88d48716543fe71bc93461f68
pkgname = pulumi-language-java
Filename: .SRCINFO. Size: 453b. View raw, , hex, or download this file.

This paste expires on 2025-02-18 13:30:12.477593. Pasted through web.