From ee4fdb76d5fc14ce338d67314c58a757235a6fd0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 20 Feb 2017 23:08:39 +0100 Subject: add new package hugo, this requires google go. logic mostly from buildroot --- package/hugo/Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/hugo/Makefile (limited to 'package/hugo/Makefile') 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 -- cgit v1.2.3