Skip to content

Commit

Permalink
glasskube: build from source
Browse files Browse the repository at this point in the history
- update to 0.17.0
- patch Makefile so as not to run lint steps
  • Loading branch information
esafak authored and herbygillot committed Aug 26, 2024
1 parent 6598e5f commit af93213
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
41 changes: 22 additions & 19 deletions devel/glasskube/Portfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0
PortGroup golang 1.0

github.setup glasskube glasskube 0.16.0 v
github.tarball_from releases
distfiles glasskube_v${version}_darwin_${build_arch}.tar.gz
go.setup github.com/glasskube/glasskube 0.17.0 v
go.offline_build no
github.tarball_from archive
revision 0

homepage https://glasskube.dev/

categories devel
maintainers openmaintainer {esafak @esafak}
installs_libs no
maintainers {esafak @esafak} openmaintainer
description Missing Package Manager for Kubernetes
long_description Deploy, configure and update Kubernetes packages 20x faster than with Helm
license Apache-2
homepage https://glasskube.dev/

if {${build_arch} eq "arm64"} {
checksums rmd160 e34a610be50e08e1a4904f7bc3291c5bb9e4f246 \
sha256 214ee81b2283b08b29f6f3e38d6d081532169b22bbc3a6711debb1672cd42875 \
size 14258333
} else {
checksums rmd160 fe7963c7018a659a3789ba5d930f547ba2dbdf25 \
sha256 62ab41000053c899b63a9262af1f1993b86660d3b3829b6d53c808afe3879638 \
size 15291420
}
checksums rmd160 a819a93e85d8bf62da2eab6d47d5956a9ffc2544 \
sha256 11ec36c58c321d0cf8b9c137cc26e8020a938548f40795160a76a18bcde25a7b \
size 785206

patchfiles-append patch-Makefile-no-lint.diff

depends_build-append \
bin:npm:npm10

build.cmd make
build.target build-cli

supported_archs x86_64 arm64
use_configure no
build {}
use_parallel_build no

destroot {
xinstall -m 755 ${workpath}/glasskube ${destroot}${prefix}/bin/glasskube
xinstall -m 0755 ${worksrcpath}/dist/${name} ${destroot}${prefix}/bin/

# generate and install the completion scripts
file mkdir ${destroot}${prefix}/share/bash-completion/completions
Expand Down
11 changes: 11 additions & 0 deletions devel/glasskube/files/patch-Makefile-no-lint.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- ./Makefile 2024-08-26 01:59:52
+++ ./Makefile 2024-08-26 02:00:12
@@ -111,7 +111,7 @@
$(GOCMD) build -o $(OUT_DIR)/cert-manager ./cmd/cert-manager/

.PHONY: build-cli
-build-cli: fmt lint-go lint-web web ## Build cli binary.
+build-cli: fmt web ## Build cli binary.
$(GOCMD) build -o $(OUT_DIR)/glasskube ./cmd/glasskube/

.PHONY: run

0 comments on commit af93213

Please sign in to comment.