From b1e1a9a87595458018b6e0e611679e30c142652f Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 7 Jul 2016 14:03:55 +0000 Subject: testing/hugo: new aport http://gohugo.io/ A Fast and Flexible Static Site Generator built with love in GoLang --- testing/hugo/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/hugo/APKBUILD (limited to 'testing/hugo') diff --git a/testing/hugo/APKBUILD b/testing/hugo/APKBUILD new file mode 100644 index 0000000000..dc1a4583cb --- /dev/null +++ b/testing/hugo/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Thomas Boerger +# Maintainer: Thomas Boerger +pkgname=hugo +pkgver=0.16 +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" +install="" +subpackages="" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/spf13/hugo/archive/v$pkgver.tar.gz" + +builddir="${srcdir}/${pkgname}-${pkgver}" +_godir="${srcdir}/go" +_gourl="github.com/spf13/hugo" + +build() { + mkdir -p ${_godir}/bin ${_godir}/src/github.com/spf13 + ln -sf ${builddir} ${_godir}/src/github.com/spf13/hugo + + cd ${_godir}/src/${_gourl} + export GOPATH="${_godir}" + + go get -d -v ./... + go install -v ${_gourl} || return 1 +} + +package() { + cd "$_godir"/bin + + install -Dm755 hugo \ + "${pkgdir}/usr/bin/hugo" || return 1 +} + +md5sums="9f5b952c08436cdff4baec9e73dfd6c5 hugo-0.16.tar.gz" +sha256sums="a2dbb243535ba69ae8709ffe5ba340951a8834d2c0e86bb76c88d99ad77ef9f5 hugo-0.16.tar.gz" +sha512sums="4c380d69d0616e43c991a67d499e31ff062b2f3714d944ce87252d1356445a08f59ac5eddebe572071318f1234f0b54cbb625632ba28b583cacffea5d728a230 hugo-0.16.tar.gz" -- cgit v1.2.3