Date: Monday, June 13, 2022 @ 15:43:51 Author: jlichtblau Revision: 1237727
archrelease: copy trunk to community-x86_64 Added: hugo/repos/community-x86_64/PKGBUILD (from rev 1237726, hugo/trunk/PKGBUILD) Deleted: hugo/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 92 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-06-13 15:43:46 UTC (rev 1237726) +++ PKGBUILD 2022-06-13 15:43:51 UTC (rev 1237727) @@ -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.100.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=('fee730c6567f58f39c9108b3a8706bd18a34a7d5ba364874ffb4d838b3f29d3063cbdf9ff6c5c7e5cabff1804d3159afaea244d777e2e8268c91cd45c7fcf731') - -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 1237726, hugo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-06-13 15:43:51 UTC (rev 1237727) @@ -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.100.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=('23126ce07b68752ad16c72300335254e8cae48524a1763edecd77ea2253b39afc07e9fe75a5375d48b50e3f0577c6872023a3aaa0a292c42ba23ed3ad1d360f5') + +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} +}