summaryrefslogtreecommitdiff
path: root/package/hugo/Makefile
blob: ab25a693fab25326ca094be8088a346b61303b83 (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
# 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