aboutsummaryrefslogtreecommitdiffstats
path: root/community/hugo/APKBUILD
blob: b474b011dc42348ba5287557ffd7ee9e4b793569 (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
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=hugo
pkgver=0.55.6
pkgrel=0
pkgdesc="A Fast and Flexible Static Site Generator built with love in GoLang"
url="https://gohugo.io/"
arch="all !x86" # tests fails on x86
license="Apache-2.0"
makedepends="go"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/gohugoio/hugo/archive/v$pkgver.tar.gz
	0001-Remove-git-tests.patch
"

build() {
	go build -v -o bin/$pkgname --tags extended
}

check() {
	go test ./...
}

package() {
	install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="b45d50ae109d1f5bbc1d52f1c8d46a1638fd83bec8a2600c3cfd6d303fdcf58db1d9201844174558e8dea62132ff146fbff9995ae0350ff2f7e4106adf07b861  hugo-0.55.6.tar.gz
66ffa51fa50209542c5ef6af2daeccb0be9fa20812f1b83c81623859fd652d047eb5d6e57b967d705d23e8760218d7c9973897d0a05d5cf2c2f33ff2bd0615d1  0001-Remove-git-tests.patch"