# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=hugo pkgver=0.17 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 govendor" install="" subpackages="" source="${pkgname}-${pkgver}.tar.gz::https://github.com/spf13/hugo/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/spf13/$pkgname" prepare() { mkdir -p ${builddir%/*} mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1 default_prepare } build() { cd "$builddir" export GOPATH="$srcdir" govendor sync || return 1 go build } package() { install -Dm755 "$builddir"/hugo "$pkgdir"/usr/bin/hugo } md5sums="6e2b1c6b1eeac2cadda53a34caf5d9d6 hugo-0.17.tar.gz" sha256sums="c09913e00d8af9d7ffc7a6aa414c147f8edd7417d430fd59478989e544347590 hugo-0.17.tar.gz" sha512sums="1c21b029895182be2648fa4f4f3a8040a44f3d7db13fff378992b7eec23cd58ca4354358defbb317e679c1b2f176c1e4f0812b737404abc36f7f739ba3da0844 hugo-0.17.tar.gz"