Date: Saturday, March 19, 2022 @ 13:52:37 Author: jlichtblau Revision: 1160845
archrelease: copy trunk to community-x86_64 Added: hugo/repos/community-x86_64/PKGBUILD (from rev 1160844, hugo/trunk/PKGBUILD) Deleted: hugo/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 92 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-19 13:52:30 UTC (rev 1160844) +++ PKGBUILD 2022-03-19 13:52:37 UTC (rev 1160845) @@ -1,46 +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.94.2 -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=('a9efe4df03b3f88b4897700a57b9afd0810e34f66f190ca5f56770fffb710a5ec41fcd25efa3f98640aa1ef94d92f56f7a4edfaca6e613e00326e9faeabaf92f') - -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 completion bash > ${pkgname}.bash-completion - ./hugo completion fish > ${pkgname}.fish - ./hugo completion zsh > ${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}.fish "${pkgdir}"/usr/share/fish/vendor_completions.d/${pkgname}.fish - install -Dm644 ${pkgname}.zsh "${pkgdir}"/usr/share/zsh/site-functions/_${pkgname} -} Copied: hugo/repos/community-x86_64/PKGBUILD (from rev 1160844, hugo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-19 13:52:37 UTC (rev 1160845) @@ -0,0 +1,46 @@ +# 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.95.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=('fbe43fc9698325c380d7e7499ee726aba448eebba087f7bdc7cdf14d01e0649869359c07fefaa9a0d9623c910523b82efc2a2b57e152d391443e2b890a29affb') + +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 completion bash > ${pkgname}.bash-completion + ./hugo completion fish > ${pkgname}.fish + ./hugo completion zsh > ${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}.fish "${pkgdir}"/usr/share/fish/vendor_completions.d/${pkgname}.fish + install -Dm644 ${pkgname}.zsh "${pkgdir}"/usr/share/zsh/site-functions/_${pkgname} +}