From: fsLeg Date: Sat, 30 Aug 2025 15:29:20 +0000 (+0300) Subject: hugo: small edits X-Git-Url: https://git.t-rg.ws/?a=commitdiff_plain;h=7cf1a0894443b512e7f0c9dbeaf88093f241ec83;p=slackbuilds.git hugo: small edits --- diff --git a/hugo/README b/hugo/README index c687ef5..b444641 100644 --- a/hugo/README +++ b/hugo/README @@ -15,12 +15,12 @@ Hugo is designed to work well for any kind of website including blogs, tumbles, and docs. By default the extended version with deployment support is built. The -extended version adds support for WebP image encoding and SASS +extended version adds support for WebP image encoding and Sass processing. The deployment support allows you to deploy your website to Amazon S3, Azure Blob Storage, or Google Cloud Storage. To build just the core version use: EXTENDED=no DEPLOY=no ./hugo.SlackBuild -dart-sass is an optional runtime dependency. It'll be used for SASS -processing regardless of version built. +dart-sass is an optional runtime dependency. If it's installed, it'll be +used for Sass processing regardless of version built. diff --git a/hugo/hugo.SlackBuild b/hugo/hugo.SlackBuild index a2908a3..6376cc0 100644 --- a/hugo/hugo.SlackBuild +++ b/hugo/hugo.SlackBuild @@ -104,14 +104,10 @@ go build -v \ -extldflags '${LDFLAGS}'" mkdir -p $PKG/usr/bin \ - $PKG/usr/man/man1 \ $PKG/usr/doc/$PRGNAM-$VERSION \ $PKG/usr/share/bash-completion/completions \ $PKG/usr/share/fish/vendor_completions.d \ $PKG/usr/share/zsh/site-functions -# hugo can generate man pages as well as docs, however, man pages are harder to read -# due to bad formatting, otherwise they are identical to docs -#./hugo gen man --dir $PKG/usr/man/man1 ./hugo gen doc --dir $PKG/usr/doc/$PRGNAM-$VERSION ./hugo completion bash > $PKG/usr/share/bash-completion/completions/$PRGNAM ./hugo completion fish > $PKG/usr/share/fish/vendor_completions.d/$PRGNAM.fish @@ -121,9 +117,6 @@ install -Dm755 -t $PKG/usr/bin hugo find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -#find $PKG/usr/man -type f -exec gzip -9 {} \; -#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - cp -a \ CONTRIBUTING.md LICENSE README.md SECURITY.md \ $PKG/usr/doc/$PRGNAM-$VERSION