Browse Source

add: hugo-extended

A build of Hugo with SCSS/SASS support
master
Chimo 3 years ago
commit
26648e832c
No known key found for this signature in database GPG Key ID: D910B384C7E3B5EC
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 @@
_pkgname=hugo
pkgname=hugo-extended
pkgver=0.45
pkgrel=1
pkgdesc="Fast and Flexible Static Site Generator in Go (with SASS/SCSS support)"
arch=('x86_64')
url="https://gohugo.io/"
license=('Apache')
depends=('glibc')
conflicts=('hugo')
makedepends=('go-pie' 'git')
optdepends=('pygmentize: syntax-highlight code snippets')
source=(${_pkgname}-${pkgver}.tar.gz::https://github.com/gohugoio/${_pkgname}/archive/v${pkgver}.tar.gz)
sha256sums=('3c7798efe488fcbf3471f608c9e08e5087cf686b6c8237a625e659e0386010e1')
prepare() {
cd "${srcdir}"/${_pkgname}-${pkgver}
export GOPATH="${srcdir}"
export PATH="${PATH}:${srcdir}/bin"
install -d "${GOPATH}/src/github.com/gohugoio"
cp -a "$(pwd)" "${GOPATH}/src/github.com/gohugoio/hugo"
}
build() {
cd "${GOPATH}/src/github.com/gohugoio/hugo"
go get -u github.com/golang/dep/cmd/dep
dep ensure
go get github.com/magefile/mage
HUGO_BUILD_TAGS=extended mage hugo
}
package() {
cd "${GOPATH}/src/github.com/gohugoio/hugo"
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Loading…
Cancel
Save