# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=hugo pkgver=0.25.1 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="" makedepends="go govendor" install="" source="${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/hugo/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/gohugoio/$pkgname" prepare() { mkdir -p ${builddir%/*} mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1 default_prepare } build() { cd "$builddir" export GOPATH="$srcdir" govendor sync -v || return 1 go build -v -o bin/$pkgname || return 1 } check() { rm -f $builddir/releaser/git_test.go cd "$builddir" export GOPATH="$srcdir" govendor test +local || return 1 } package() { install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="d583dc744e84ae598847589ac6118a222854c36ce3e137a02c684cabbc511ea7cbfb82ccb923d78855a0ce0ed45cf734eed43086358791049972845c78e3b03e hugo-0.25.1.tar.gz"