[arch-commits] Commit in hugo/trunk (PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sat Sep 29 15:25:10 UTC 2018


    Date: Saturday, September 29, 2018 @ 15:25:10
  Author: jlichtblau
Revision: 387778

upgpkg: hugo 0.49-1 - new upstream release

Modified:
  hugo/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-29 15:25:07 UTC (rev 387777)
+++ PKGBUILD	2018-09-29 15:25:10 UTC (rev 387778)
@@ -4,7 +4,7 @@
 # Contributor: Brenton Horne
 
 pkgname=hugo
-pkgver=0.48
+pkgver=0.49
 pkgrel=1
 pkgdesc="Fast and Flexible Static Site Generator in Go"
 arch=('x86_64')
@@ -14,26 +14,15 @@
 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=('0fa6bf285fc586fccacbf782017a5c0c9d164f6bf0670b12dd21526b32328cb2')
+sha256sums=('a31e0bac3a8c2884ed156b696fa1f63aa90b5898b537d30fbbdb95311ffa3e83')
 
-prepare() {
+build() {
   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"
+  go build -tags extended
 }
 
-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"
+  cd "${srcdir}"/${pkgname}-${pkgver}
   install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list