Date: Friday, September 16, 2016 @ 17:26:18
  Author: jlichtblau
Revision: 189793

upgpkg: godep 2:74-1 - new upstream release

Modified:
  godep/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-16 16:47:51 UTC (rev 189792)
+++ PKGBUILD    2016-09-16 17:26:18 UTC (rev 189793)
@@ -1,11 +1,12 @@
-# $Id:
-# Maintainer : Martin Wimpress <c...@flexion.org>
+# $Id$
+# Maintainer : Jaroslav Lichtblau <svetlemo...@archlinux.org>
+# Contributor: Martin Wimpress <c...@flexion.org>
 # Contributor: Sauyon Lee <a...@sauyon.com>
 
 pkgname=godep
-pkgver=116.20150528
+pkgver=74
 pkgrel=1
-epoch=1
+epoch=2
 pkgdesc="Dependency tool for go"
 arch=('i686' 'x86_64')
 url="http://github.com/tools/godep";
@@ -12,27 +13,26 @@
 license=('BSD')
 depends=('glibc')
 makedepends=('git' 'go' 'mercurial')
-source=("${pkgname}::git+https://github.com/tools/godep#commit=e28aafa1c4a9ab9108ae98211f12bbcc43e24510";)
-md5sums=('SKIP')
+source=($pkgname-$pkgver.tar.gz::https://github.com/tools/godep/archive/v$pkgver.tar.gz)
+sha256sums=('e68c7766c06c59327a4189fb929d390e1cc7a0c4910e33cada54cf40f40ca546')
 
-pkgver() {
-       cd "${srcdir}/${pkgname}"
-    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git log -1 --format=%cd 
--date=short | tr -d -)"
-}
-
 prepare() {
-       export GOPATH="${srcdir}"
-    go get golang.org/x/tools/go/vcs
-       go get github.com/kr/fs
+  export GOPATH="${srcdir}"
+  go get golang.org/x/tools/go/vcs
+  go get github.com/pmezard/go-difflib/difflib
+  go get github.com/kr/fs
+  go get github.com/kr/pretty
 }
 
 build() {
-       cd "${srcdir}/${pkgname}"
-       GOPATH="${srcdir}" go build
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  GOPATH="${srcdir}" go build
 }
 
 package() {
-       cd "${srcdir}/${pkgname}"
-       install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/godep"
-       install -Dm644 License "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  install -Dm755 $pkgname-$pkgver "${pkgdir}"/usr/bin/$pkgname
+  install -Dm644 License "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }

Reply via email to