Date: Sunday, February 6, 2022 @ 19:03:30 Author: jlichtblau Revision: 1127244
archrelease: copy trunk to community-x86_64 Added: hugo/repos/community-x86_64/PKGBUILD (from rev 1127243, hugo/trunk/PKGBUILD) Deleted: hugo/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 88 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-06 19:03:21 UTC (rev 1127243) +++ PKGBUILD 2022-02-06 19:03:30 UTC (rev 1127244) @@ -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.92.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=('9af1f257f282cee762b7c32643d093825d4db77d90d5b68946fa2fbeeba68a39be003fd1449dc41be4371c143d2fe495fef145788d861bfc13f59b95d9624e77') - -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 1127243, hugo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-06 19:03:30 UTC (rev 1127244) @@ -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.92.1 +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=('d5041e89293ec75f2f4622fe3b622ed7a2c920512c39a6fac4364f6e8c033130a09043403dae186b71a78a42118820ae88309e404dd788f77a9bf77fe526759f') + +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} +}