# Contributor: Fraser Waters # Maintainer: Fraser Waters pkgname=pulumi pkgver=2.16.2 pkgrel=1 pkgdesc="Pulumi's Infrastructure as Code SDK" url="https://github.com/pulumi/pulumi" # x86_64 is the only supported architecture by pulumi arch="x86_64" license="Apache-2.0" depends="ca-certificates" makedepends="go bash" source="$pkgname-$pkgver.tar.gz::https://github.com/pulumi/pulumi/archive/v$pkgver.tar.gz 10-install1.patch " builddir="$srcdir/github.com/pulumi/$pkgname" prepare() { mkdir -p ${builddir%/*} mv $srcdir/$pkgname-$pkgver "$builddir"/ mkdir -p "$srcdir"/opt default_prepare } build() { export GOFLAGS="$GOFLAGS -modcacherw" PULUMI_VERSION="v$pkgver" PULUMI_ROOT="$srcdir"/opt GOPATH="$srcdir" make install_plugin_all } check() { # It would be good to at least run the fast tests but this hits OOM on the alpine pipelines # PULUMI_ROOT="$srcdir"/opt GOPATH="$srcdir" make test_fast [ "$("$srcdir"/opt/bin/"$pkgname" version)" == "v$pkgver" ] } package() { install -Dm755 -t "$pkgdir"/usr/bin "$srcdir"/opt/bin/* } sha512sums="dee178215b55e869017a9330a80e0e93ebf9a9ce9eb8d34c192d6812bfde50e607261c7442c4d4f1fb6feffb77831b14144f140fe9d3e66d5240fe8ca1364bbd pulumi-2.16.2.tar.gz e096ba0c25f53590bcb778dae21ed9505bfff498a78aa0aff79286f0991510d31dab2fc7e6e479d1a351444d17fe2a0df320ffe14823446bec6ea4d1f2f17e16 10-install1.patch"