summaryrefslogtreecommitdiff
path: root/package/hugo
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-20 23:08:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-20 23:08:44 +0100
commitee4fdb76d5fc14ce338d67314c58a757235a6fd0 (patch)
treec42cb92b942bfbca4fc0324e6142dc123a1fe95c /package/hugo
parent6eac6fcd18e2d6adc52ad323ffd485fc3f37d6dc (diff)
add new package hugo, this requires google go. logic mostly from buildroot
Diffstat (limited to 'package/hugo')
-rw-r--r--package/hugo/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/hugo/Makefile b/package/hugo/Makefile
new file mode 100644
index 000000000..ab25a693f
--- /dev/null
+++ b/package/hugo/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= hugo
+PKG_VERSION:= 0.18.1
+PKG_RELEASE:= 1
+PKG_HASH:= 29db2524a3042f507162164ec3ce9071277a7608547f4ea4f739d63cac4b39e4
+PKG_DESCR:= fast website generator
+PKG_SECTION:= net/http
+PKG_BUILDDEP:= go-host
+PKG_URL:= https://gohugo.io
+PKG_SITES:= https://github.com/spf13/hugo/archive/
+
+DISTFILES:= v$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,HUGO,hugo,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+include $(ADK_TOPDIR)/mk/go.mk
+
+do-build:
+ (cd $(WRKBUILD) && $(ADK_GO_TARGET_ENV) $(ADK_GO) \
+ get -v github.com/spf13/hugo)
+
+hugo-install:
+ $(INSTALL_DIR) $(IDIR_HUGO)/usr/bin
+ $(INSTALL_BIN) $(ADK_GO_BINPATH)/hugo \
+ $(IDIR_HUGO)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk