aboutsummaryrefslogtreecommitdiff
path: root/hugo/Staplerfile
diff options
context:
space:
mode:
author2026-02-07 20:54:47 +0300
committer2026-02-07 21:02:09 +0300
commit39836da945d3519bb52bd664f4e4880acd223949 (patch)
treecfac255374b7bee192b88125603d8cc49994ed3e /hugo/Staplerfile
parentadd: go 1.5.7 (diff)
downloadrepo-39836da945d3519bb52bd664f4e4880acd223949.tar.gz
repo-39836da945d3519bb52bd664f4e4880acd223949.tar.bz2
repo-39836da945d3519bb52bd664f4e4880acd223949.tar.xz
repo-39836da945d3519bb52bd664f4e4880acd223949.zip
add: hugo 0.155.2
chore(recutils): Поправил сборку
Diffstat (limited to '')
-rw-r--r--hugo/Staplerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/hugo/Staplerfile b/hugo/Staplerfile
new file mode 100644
index 0000000..437968b
--- /dev/null
+++ b/hugo/Staplerfile
@@ -0,0 +1,35 @@
+name="hugo"
+version="0.155.2"
+release=1
+summary="The world’s fastest framework for building websites."
+desc="Hugo is a static site generator written in Go, optimized for speed and designed for flexibility. With its advanced templating system and fast asset pipelines, Hugo renders a complete site in seconds, often less."
+homepage="https://gohugo.io/"
+maintainer="Alexander NeonXP Kiryukhin <i@neonxp.ru>"
+architectures=("amd64")
+license="Apache-2.0"
+sources=("https://github.com/gohugoio/hugo/archive/refs/tags/v0.155.2.tar.gz?~name=hugo")
+checksums=("sha256:69803efca258dce295d8965800657b12c95d5e58d016be7131e39ae36bb97797")
+# disable_network=1
+
+provides=('hugo')
+conflicts=('hugo')
+
+build_deps=('go')
+
+build() {
+ mv hugo* hugo
+ cd hugo
+ export GOPATH=$srcdir/go
+ export GOCACHE=$srcdir/cache
+ CGO_ENABLED=1 go build -tags extended,withdeploy -ldflags="-s -w" -o $srcdir/dist/ .
+ rm -rf $srcdir/go
+ rm -rf $srcdir/cache
+}
+
+package() {
+ install-binary $srcdir/dist/hugo
+}
+
+files() {
+ files-find-binary
+}