blob: 14da014d6e22368bcf991794e0f0bd401100e3d1 (
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
|
# Maintainer: mapleafgo <mapleafgo@163.com>
pkgname=hugo-extended-cli
pkgver=0.119.0
pkgrel=1
pkgdesc="Extended version of Hugo"
arch=('x86_64' 'aarch64')
url="https://gohugo.io/"
license=('Apache 2.0')
conflicts=('hugo'
'hugo-git'
'hugo-bin'
'hugo-extended-bin')
source_x86_64=(${pkgname}-${pkgver}-x86_64.tar.gz::https://github.com/gohugoio/hugo/releases/download/v${pkgver}/hugo_extended_${pkgver}_linux-amd64.tar.gz)
source_aarch64=(${pkgname}-${pkgver}-aarch64.tar.gz::https://github.com/gohugoio/hugo/releases/download/v${pkgver}/hugo_extended_${pkgver}_linux-arm64.tar.gz)
md5sums_x86_64=("SKIP")
md5sums_aarch64=("SKIP")
pkgver() {
curl https://api.github.com/repos/gohugoio/hugo/releases/latest | grep tag_name | awk -F '\"' '{print $4}' | awk -F 'v' '{print $2}'
}
package() {
cd "${srcdir}"
install -Dm755 "hugo" "${pkgdir}"/usr/bin/hugo
}
|