Browse Source

add: hugo-extended

A build of Hugo with SCSS/SASS support
master
Chimo 1 year ago
commit
26648e832c
No known key found for this signature in database
1 changed files with 37 additions and 0 deletions
  1. 37
    0
      hugo-extended/PKGBUILD

+ 37
- 0
hugo-extended/PKGBUILD View File

@@ -0,0 +1,37 @@
1
+_pkgname=hugo
2
+pkgname=hugo-extended
3
+pkgver=0.45
4
+pkgrel=1
5
+pkgdesc="Fast and Flexible Static Site Generator in Go (with SASS/SCSS support)"
6
+arch=('x86_64')
7
+url="https://gohugo.io/"
8
+license=('Apache')
9
+depends=('glibc')
10
+conflicts=('hugo')
11
+makedepends=('go-pie' 'git')
12
+optdepends=('pygmentize: syntax-highlight code snippets')
13
+source=(${_pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${_pkgname}/archive/v${pkgver}.tar.gz)
14
+sha256sums=('3c7798efe488fcbf3471f608c9e08e5087cf686b6c8237a625e659e0386010e1')
15
+
16
+prepare() {
17
+  cd "${srcdir}"/${_pkgname}-${pkgver}
18
+  export GOPATH="${srcdir}"
19
+  export PATH="${PATH}:${srcdir}/bin"
20
+  install -d "${GOPATH}/src/github.com/gohugoio"
21
+  cp -a "$(pwd)" "${GOPATH}/src/github.com/gohugoio/hugo"
22
+}
23
+
24
+build() {
25
+  cd "${GOPATH}/src/github.com/gohugoio/hugo"
26
+  go get -u github.com/golang/dep/cmd/dep
27
+  dep ensure
28
+  go get github.com/magefile/mage
29
+  HUGO_BUILD_TAGS=extended mage hugo
30
+}
31
+
32
+package() {
33
+  cd "${GOPATH}/src/github.com/gohugoio/hugo"
34
+  install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
35
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
36
+}
37
+

Loading…
Cancel
Save