[arch-commits] Commit in dep/repos (community-x86_64 community-x86_64/PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sun Mar 11 20:22:53 UTC 2018
Date: Sunday, March 11, 2018 @ 20:22:52
Author: foxboron
Revision: 306244
archrelease: copy trunk to community-x86_64
Added:
dep/repos/community-x86_64/
dep/repos/community-x86_64/PKGBUILD
(from rev 306243, dep/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: dep/repos/community-x86_64/PKGBUILD (from rev 306243, dep/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-03-11 20:22:52 UTC (rev 306244)
@@ -0,0 +1,39 @@
+# 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"
+}
More information about the arch-commits
mailing list