[arch-commits] Commit in dep/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Friday, August 3, 2018 @ 20:11:45
  Author: foxboron
Revision: 367628

archrelease: copy trunk to community-x86_64

Added:
  dep/repos/community-x86_64/PKGBUILD
    (from rev 367627, dep/trunk/PKGBUILD)
Deleted:
  dep/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   76 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 37 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-03 20:11:37 UTC (rev 367627)
+++ PKGBUILD	2018-08-03 20:11:45 UTC (rev 367628)
@@ -1,39 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgname=dep
-pkgver=0.4.1
-pkgrel=3
-pkgdesc="Go dependency management tool"
-arch=('x86_64')
-url='https://golang.github.io/dep/'
-license=('BSD')
-makedepends=('go-pie' 'git')
-optdepends=('git: fetch git sources')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golang/dep/archive/v${pkgver}.tar.gz")
-sha256sums=('df9b050bf4dbb2a8cf04372097a68b04a6ae1986ed7c5086914ac86d74ea9d49')
-
-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
-}
-
-check(){
-  cd "${pkgname}-${pkgver}"
-  go test
-}
-
-package(){
-  cd "${pkgname}-${pkgver}"
-  install -Dm755 dep "${pkgdir}/usr/bin/dep"
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: dep/repos/community-x86_64/PKGBUILD (from rev 367627, dep/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-03 20:11:45 UTC (rev 367628)
@@ -0,0 +1,37 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=dep
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="Go dependency management tool"
+arch=('x86_64')
+url='https://golang.github.io/dep/'
+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=('65c31c8d51513dfabd25f1f37ecd22a38ab3bcdd5893bdf10f54941250e4f19d')
+
+prepare(){
+  mkdir -p src/github.com/golang
+  ln -rTsf "${pkgname}-${pkgver}" src/github.com/golang/dep
+}
+
+build(){
+  export GOPATH="${srcdir}"
+  cd src/github.com/golang/dep
+  go install -gcflags "all=-trimpath=${GOPATH}/src" -asmflags "all=-trimpath=${GOPATH}/src" ./cmd/...
+}
+
+check(){
+  cd src/github.com/golang/dep
+  go test ./...
+}
+
+package(){
+  install -Dm755 bin/dep "${pkgdir}/usr/bin/dep"
+
+  cd "${pkgname}-${pkgver}"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list