From d9686e07897a3b5f9624cb22b57fb1dfc6b70b14 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 20 Dec 2016 14:59:41 +0100 Subject: community/hugo: moved from testing and sync verbose --- community/hugo/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 community/hugo/APKBUILD (limited to 'community/hugo') diff --git a/community/hugo/APKBUILD b/community/hugo/APKBUILD new file mode 100644 index 0000000000..968ea49976 --- /dev/null +++ b/community/hugo/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Thomas Boerger +# Maintainer: Thomas Boerger +pkgname=hugo +pkgver=0.18 +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/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 -v || return 1 + go build -v -o bin/$pkgname || return 1 +} + +package() { + install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname +} + +md5sums="f8b829b348ab7ea85c467631c6552fb0 hugo-0.18.tar.gz" +sha256sums="9d432f53018d642526a44f9182b6584a4be83810dcd6ebc13e7a44c015ae35a0 hugo-0.18.tar.gz" +sha512sums="b55a9e75a9d71fab2882d1eb923861dad0f504b219bcd9c6d5dd8a81fdb7509355cbb2ce692a488dc8b7439166772cd40563742234182e5e66c320906145583f hugo-0.18.tar.gz" -- cgit v1.2.3