Date: Saturday, December 25, 2021 @ 17:25:10 Author: jlichtblau Revision: 1083707
archrelease: copy trunk to community-x86_64 Added: hugo/repos/community-x86_64/PKGBUILD (from rev 1083706, hugo/trunk/PKGBUILD) Deleted: hugo/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 88 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-12-25 17:25:04 UTC (rev 1083706) +++ PKGBUILD 2021-12-25 17:25:10 UTC (rev 1083707) @@ -1,44 +0,0 @@ -# Maintainer: Jaroslav Lichtblau <svetlemo...@archlinux.org> -# Maintainer: Christian Rebischke <christian.rebisc...@archlinux.org> -# Contributor: fordprefect -# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org> -# Contributor: Brenton Horne - -pkgname=hugo -pkgver=0.90.0 -pkgrel=1 -pkgdesc="Fast and Flexible Static Site Generator in Go" -arch=('x86_64') -url="https://gohugo.io/" -license=('Apache') -depends=('glibc') -makedepends=('go' 'git') -optdepends=('python-pygments: syntax-highlight code snippets' - 'python-docutils: reStructuredText support') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${pkgname}/archive/v${pkgver}.tar.gz) -sha512sums=('12db5440f920fe563da0095f3e2e4176b127aac82101fc6635f0df01f5ab3f8c840f8b29e271a111a29ec14056545bcf7b5db5b4d834df515f54756ebe113d62') - -build() { - cd "${srcdir}"/${pkgname}-${pkgver} - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - go build -tags extended - - ./hugo gen man - ./hugo gen autocomplete --type bash --completionfile ${pkgname}.bash-completion - ./hugo gen autocomplete --type zsh --completionfile ${pkgname}.zsh -} - -package() { - cd "${srcdir}"/${pkgname}-${pkgver} - install -Dm755 "${pkgname}" "${pkgdir}"/usr/bin/${pkgname} - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE - - install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/man/*.1 -t "${pkgdir}"/usr/share/man/man1/ - - install -Dm644 ${pkgname}.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/${pkgname} - install -Dm644 ${pkgname}.zsh "${pkgdir}"/usr/share/zsh/site-functions/_${pkgname} -} Copied: hugo/repos/community-x86_64/PKGBUILD (from rev 1083706, hugo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-12-25 17:25:10 UTC (rev 1083707) @@ -0,0 +1,44 @@ +# Maintainer: Jaroslav Lichtblau <svetlemo...@archlinux.org> +# Maintainer: Christian Rebischke <christian.rebisc...@archlinux.org> +# Contributor: fordprefect +# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org> +# Contributor: Brenton Horne + +pkgname=hugo +pkgver=0.91.0 +pkgrel=1 +pkgdesc="Fast and Flexible Static Site Generator in Go" +arch=('x86_64') +url="https://gohugo.io/" +license=('Apache') +depends=('glibc') +makedepends=('go' 'git') +optdepends=('python-pygments: syntax-highlight code snippets' + 'python-docutils: reStructuredText support') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${pkgname}/archive/v${pkgver}.tar.gz) +sha512sums=('0ddffb73a7561d284a21f335a8fd3fe1388d7c869765b8bfafd0d0a797b1295b50413c6131465ec4e29e37cc63d923dbe046b8b4752541d194ac63f90697767f') + +build() { + cd "${srcdir}"/${pkgname}-${pkgver} + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -tags extended + + ./hugo gen man + ./hugo gen autocomplete --type bash --completionfile ${pkgname}.bash-completion + ./hugo gen autocomplete --type zsh --completionfile ${pkgname}.zsh +} + +package() { + cd "${srcdir}"/${pkgname}-${pkgver} + install -Dm755 "${pkgname}" "${pkgdir}"/usr/bin/${pkgname} + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + + install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/man/*.1 -t "${pkgdir}"/usr/share/man/man1/ + + install -Dm644 ${pkgname}.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/${pkgname} + install -Dm644 ${pkgname}.zsh "${pkgdir}"/usr/share/zsh/site-functions/_${pkgname} +}