# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=hugo pkgver=0.39 pkgrel=0 pkgdesc="A Fast and Flexible Static Site Generator built with love in GoLang" url="http://gohugo.io/" arch="all !x86" # tests fails on x86 license="Apache-2.0" depends="" makedepends="go dep" install="" source="${pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/hugo/archive/v$pkgver.tar.gz drop-git-tests.patch" builddir="$srcdir/src/github.com/gohugoio/$pkgname" prepare() { mkdir -p ${builddir%/*} mv "$srcdir"/$pkgname-$pkgver "$builddir"/ default_prepare } build() { cd "$builddir" export GOPATH="$srcdir" dep ensure -v go build -v -o bin/$pkgname } check() { cd "$builddir" export GOPATH="$srcdir" go test ./... } package() { install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="a4067b7feae024be7926869a5f0a9b30339e9b4426892e050f7a8d1ea332239fdeec6ab7b524a9e79c1443c71e8329a7fe9586d732ba2e3102de685c7f318c9a hugo-0.39.tar.gz 31f212a444998a582c5c71beb9522e665242cf973322a4cfce2f756a24fae03b194b8aa33fde233212b9624f311f6dc56f123183f61bf8cd7f3cbd695e7b86c5 drop-git-tests.patch"