removed community/glide

This commit is contained in:
Kevin Mihelich 2020-05-01 19:27:26 +00:00
parent f19dc38e5b
commit da68d97f36

View file

@ -1,46 +0,0 @@
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: fanningert <thomas@fanninger.at>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build with go instead of gcc-go
pkgname=glide
pkgver=0.13.3
pkgrel=1
pkgdesc='Dependency management and vendoring for Go projects'
arch=('x86_64')
url='https://github.com/Masterminds/glide'
license=('MIT')
depends=('gcc-libs')
makedepends=('go' 'git')
options=('!strip' '!emptydirs')
_commit=8ed5b9292379d86c39592a7e6a58eb9c903877cf # tags/v0.13.3^0
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: