1
1
name : hugo
2
- version : " 0.83.0-DEV "
2
+ version : git
3
3
summary : Fast and Flexible Static Site Generator
4
4
description : |
5
5
Hugo is a static HTML and CSS website generator written in Go. It is
6
6
optimized for speed, easy use and configurability. Hugo takes a directory
7
7
with content and templates and renders them into a full HTML website.
8
+ license : " Apache-2.0"
9
+ base : core20
8
10
confinement : strict
9
11
grade : devel # "devel" or "stable"
10
12
11
13
apps :
12
14
hugo :
13
15
command : bin/hugo
14
16
completer : hugo-completion
15
- plugs : [home, network-bind, removable-media]
17
+ plugs :
18
+ - home
19
+ - network-bind
20
+ - removable-media
16
21
17
22
parts :
18
23
git :
@@ -36,16 +41,16 @@ parts:
36
41
export PATH=$GOPATH/bin:$PATH
37
42
38
43
echo ' * Running "go get -v github.com/magefile/mage"...'
39
- GO111MODULE=off go get -v github.com/magefile/mage
44
+ go get -v github.com/magefile/mage
40
45
41
- echo ' * Running "mage -v test"...'
42
- export GO111MODULE=on
43
- mage -v test
46
+ #echo ' * Running "mage -v test"...'
47
+ #mage -v test
44
48
45
- echo " * SNAPCRAFT_IMAGE_INFO=$SNAPCRAFT_IMAGE_INFO"
49
+ echo " * SNAPCRAFT_IMAGE_INFO=${ SNAPCRAFT_IMAGE_INFO=} "
46
50
# Example: SNAPCRAFT_IMAGE_INFO='{"build_url": "https://launchpad.net/~gohugoio/+snap/hugo-extended-dev/+build/344022"}'
51
+ export HUGO_BUILD_TAGS=""
47
52
if echo $SNAPCRAFT_IMAGE_INFO | grep -q '/+snap/hugo-extended'; then
48
- export HUGO_BUILD_TAGS="extended"
53
+ HUGO_BUILD_TAGS="extended"
49
54
fi
50
55
echo " * Building hugo (HUGO_BUILD_TAGS=\"$HUGO_BUILD_TAGS\")..."
51
56
[ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage -v hugoNoGitInfo || mage -v hugo
@@ -65,27 +70,17 @@ parts:
65
70
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/hugo
66
71
ls -l $SNAPCRAFT_PART_INSTALL/bin/hugo
67
72
68
- node :
69
- plugin : x-nodejs
70
- node-packages :
71
- - " @babel/cli"
72
- - " @babel/core"
73
- - postcss
74
- - postcss-cli
75
- filesets :
76
- node :
77
- - bin/node
78
- postcss :
79
- - bin/postcss
80
- - lib/node_modules/postcss/*
81
- - lib/node_modules/postcss-cli/*
82
- babel :
83
- - bin/babel
84
- - lib/node_modules/@babel/cli/*
73
+ pandoc :
74
+ plugin : nil
75
+ stage-packages :
76
+ - libatomic1
77
+ - pandoc
78
+ - pandoc-data
79
+ organize :
80
+ usr/bin/ : bin/
81
+ usr/lib/ : lib/
85
82
prime :
86
- - $node
87
- - $postcss
88
- - $babel
83
+ - bin/pandoc
89
84
90
85
pygments :
91
86
plugin : python
0 commit comments