Requesting a change to install hugo extended edition .deb
Requesting a new app ✨
If you are requesting a new app to be added to deb-get please complete the
following section, only one app per issue please.
- [Y] I have checked that this app does not already have a pending request and has not previously been declined.
- App Name: hugo_extended
- Download URL: https://github.com/gohugoio/hugo/releases
- Website URL: https://gohugo.io
- App Summary:
Hugo is a static-site generator. There are two versions of Hugo.
- hugo (standard)
- hugo_extended
deb-get currently supports the regular hugo (standard) installer, however it currently lacks hugo_extended which is the recommended version (see: https://gohugo.io/installation/linux/ ).
Thank you!
if you want extended then cp /etc/deb-get/01-main.d/hugo /etc/deb-get/99-local.d/hugo
and just remove the '-v' :
--- /etc/deb-get/01-main.d/hugo 2024-04-15 15:28:53.000000000 +0100
+++ /etc/deb-get/99-local.d/hugo 2023-03-19 19:22:34.665564532 +0000
@@ -2,7 +2,7 @@
ARCHS_SUPPORTED="amd64 arm64"
get_github_releases "gohugoio/hugo" "latest"
if [ "${ACTION}" != "prettylist" ]; then
- URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -v extended | head -n1 | cut -d'"' -f4)
+ URL=$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep extended | head -n1 | cut -d'"' -f4)
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
fi
PRETTY_NAME="Hugo"
Since the app is called hugo in both debs we can only support one or the other. If you want to change deb-get to install the extended edition then a PR with the above tiny change would accomplish that (and anyone wanting the standard edition would need to reverse the above patch).
Hi,
Thank you for the information. Yes, that would not be ideal.
I'll share this information in the Hugo forums as well and see if there's something that can be done to resolve the conflict. ^_^
I will opt for the local change for now. Thank you!
(P.S. Thread in Hugo forums: https://discourse.gohugo.io/t/deb-get-installation-of-hugo-extended/49563 )