aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hugo/APKBUILD
blob: dc1a4583cb2da8912c6c40e268d96e61024ad80d (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
36
37
38
39
40
41
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=hugo
pkgver=0.16
pkgrel=0
pkgdesc="A Fast and Flexible Static Site Generator built with love in GoLang"
url="http://gohugo.io/"
arch="all"
license="Apache 2.0"
depends=""
depends_dev=""
makedepends="$depends_dev go"
install=""
subpackages=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/spf13/hugo/archive/v$pkgver.tar.gz"

builddir="${srcdir}/${pkgname}-${pkgver}"
_godir="${srcdir}/go"
_gourl="github.com/spf13/hugo"

build() {
	mkdir -p ${_godir}/bin ${_godir}/src/github.com/spf13
	ln -sf ${builddir} ${_godir}/src/github.com/spf13/hugo

	cd ${_godir}/src/${_gourl}
	export GOPATH="${_godir}"

	go get -d -v ./...
	go install -v ${_gourl} || return 1
}

package() {
	cd "$_godir"/bin

	install -Dm755 hugo \
		"${pkgdir}/usr/bin/hugo" || return 1
}

md5sums="9f5b952c08436cdff4baec9e73dfd6c5  hugo-0.16.tar.gz"
sha256sums="a2dbb243535ba69ae8709ffe5ba340951a8834d2c0e86bb76c88d99ad77ef9f5  hugo-0.16.tar.gz"
sha512sums="4c380d69d0616e43c991a67d499e31ff062b2f3714d944ce87252d1356445a08f59ac5eddebe572071318f1234f0b54cbb625632ba28b583cacffea5d728a230  hugo-0.16.tar.gz"