blob: a4dc0dbba13d44e3db46397bfd97bc9ebe0e6c13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: xeptore
# Contributor: Porous3247 <pqtb3v7t at jasonyip1 dot anonaddy dot me>
pkgname=gohugo-extended-bin
pkgver=0.133.1
pkgrel=1
pkgdesc="Hugo - The world's fastest framework for building websites (Extended Edition)"
arch=('x86_64' 'aarch64')
url='https://gohugo.io/'
license=('Apache')
depends=('glibc')
conflicts=('hugo')
provides=('hugo')
source_x86_64=("https://github.com/gohugoio/hugo/releases/download/v${pkgver}/hugo_extended_${pkgver}_linux-amd64.tar.gz")
source_aarch64=("https://github.com/gohugoio/hugo/releases/download/v${pkgver}/hugo_extended_${pkgver}_linux-arm64.tar.gz")
sha256sums_x86_64=('9cd1b2acffbf6e90b3e9195084fb7968a552addb01077ccd9a6bdaec0d37728d')
sha256sums_aarch64=('21ac15df308ddbef262e7150c011804d17df19aa9e0a45333085e050913c88e8')
build() {
cd "${srcdir}"
./hugo gen man --dir man
./hugo completion bash > hugo.bash-completion
./hugo completion fish > hugo.fish
./hugo completion zsh > hugo.zsh
}
package() {
cd "${srcdir}"
install -Dm755 hugo "${pkgdir}/usr/bin/hugo"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/hugo/LICENSE"
install -Dm644 man/*.1 -t "${pkgdir}"/usr/share/man/man1/
install -Dm644 hugo.bash-completion "${pkgdir}/usr/share/bash-completion/completions/hugo"
install -Dm644 hugo.fish "${pkgdir}/usr/share/fish/vendor_completions.d/hugo.fish"
install -Dm644 hugo.zsh "${pkgdir}/usr/share/zsh/site-functions/_hugo"
}
|