23 lines
641 B
Bash
23 lines
641 B
Bash
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
pkgname=vim-go-tools
|
|
pkgver=0.1.0
|
|
pkgrel=1
|
|
pkgdesc="Package of tools required by vim-go"
|
|
arch=('x86_64')
|
|
url="https://github.com/fatih/vim-go"
|
|
license=(other)
|
|
makedepends=('go')
|
|
source=("build.sh")
|
|
sha512sums=('5055aec7ebd34916110b85bde9f7db1bce22a278e0c02e518581d399919aac2052e9e9d9469ce869e9152e418234f494729170e0fa261c308c4f29d8abd01ac1')
|
|
|
|
build() {
|
|
mkdir -p "${srcdir}/go"
|
|
GOPATH="${srcdir}/go" bash "${srcdir}/build.sh"
|
|
}
|
|
|
|
package() {
|
|
for binary in "${srcdir}/go/bin/"*; do
|
|
install -Dm755 "${srcdir}/go/bin/$(basename ${binary})" "${pkgdir}/usr/bin/$(basename ${binary})"
|
|
done
|
|
}
|