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

Morten Linderud foxboron at archlinux.org
Fri Aug 3 20:11:38 UTC 2018


    Date: Friday, August 3, 2018 @ 20:11:37
  Author: foxboron
Revision: 367627

upgpkg: dep 0.5.0-1

Updated to 0.5.0

Modified:
  dep/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-03 18:42:59 UTC (rev 367626)
+++ PKGBUILD	2018-08-03 20:11:37 UTC (rev 367627)
@@ -1,8 +1,8 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=dep
-pkgver=0.4.1
-pkgrel=3
+pkgver=0.5.0
+pkgrel=1
 pkgdesc="Go dependency management tool"
 arch=('x86_64')
 url='https://golang.github.io/dep/'
@@ -9,31 +9,29 @@
 license=('BSD')
 makedepends=('go-pie' 'git')
 optdepends=('git: fetch git sources')
+checkdepends=('mercurial' 'bzr' 'subversion')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golang/dep/archive/v${pkgver}.tar.gz")
-sha256sums=('df9b050bf4dbb2a8cf04372097a68b04a6ae1986ed7c5086914ac86d74ea9d49')
+sha256sums=('65c31c8d51513dfabd25f1f37ecd22a38ab3bcdd5893bdf10f54941250e4f19d')
 
 prepare(){
-  export GOPATH="${srcdir}"
-  mkdir -p src
-  mv "${pkgname}-${pkgver}"/vendor/* src/
   mkdir -p src/github.com/golang
   ln -rTsf "${pkgname}-${pkgver}" src/github.com/golang/dep
 }
 
-# TODO: Makefile next release
-
 build(){
-  cd "${pkgname}-${pkgver}"
-  go build ./cmd/dep
+  export GOPATH="${srcdir}"
+  cd src/github.com/golang/dep
+  go install -gcflags "all=-trimpath=${GOPATH}/src" -asmflags "all=-trimpath=${GOPATH}/src" ./cmd/...
 }
 
 check(){
-  cd "${pkgname}-${pkgver}"
-  go test
+  cd src/github.com/golang/dep
+  go test ./...
 }
 
 package(){
+  install -Dm755 bin/dep "${pkgdir}/usr/bin/dep"
+
   cd "${pkgname}-${pkgver}"
-  install -Dm755 dep "${pkgdir}/usr/bin/dep"
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list