blob: 907fc00ec2f713767320944c1c65e95488869b37 (
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
|
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
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"
|