[arch-commits] Commit in glide/repos (2 files)

Antonio Rojas arojas at archlinux.org
Sun Jun 16 08:22:08 UTC 2019


    Date: Sunday, June 16, 2019 @ 08:22:08
  Author: arojas
Revision: 481813

archrelease: copy trunk to community-testing-x86_64

Added:
  glide/repos/community-testing-x86_64/
  glide/repos/community-testing-x86_64/PKGBUILD
    (from rev 481812, glide/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: glide/repos/community-testing-x86_64/PKGBUILD (from rev 481812, glide/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-06-16 08:22:08 UTC (rev 481813)
@@ -0,0 +1,42 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: fanningert <thomas at fanninger.at>
+
+pkgname=glide
+pkgver=0.13.2
+pkgrel=2
+pkgdesc='Dependency management and vendoring for Go projects'
+arch=('x86_64')
+url='https://github.com/Masterminds/glide'
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('gcc-go' 'git')
+options=('!strip' '!emptydirs')
+source=("git+$url#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  mkdir -p build/go && cd build/go
+  for f in "/usr/lib/go/"*; do ln -s "$f"; done
+  rm pkg && mkdir pkg && cd pkg
+  for f in "/usr/lib/go/pkg/"*; do ln -s "$f"; done
+  export GOPATH="$srcdir/build"
+  export GOROOT="$GOPATH/go"
+  mkdir -p "$GOPATH/src/${url#https://}"
+  mv "$srcdir/$pkgname"/* "$GOPATH/src/${url#https://}"
+}
+
+build() {
+  cd "$GOPATH/src/${url#https://}"
+
+  go build -o glide -ldflags "-X main.version=$pkgver" glide.go
+}
+
+package() {
+  cd "$GOPATH/src/${url#https://}"
+
+  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: github.com/Masterminds/glide
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list