# Maintainer: Knut Ahlers pkgname=vim-go-tools pkgver=2020.05.31 pkgrel=2 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" "tools.txt") sha512sums=('5bf0f12f0836084a9a76a970cc605375b9cabead2450fd5ab2753c3604b3061568c2851e090516846c6920bd2dfd3843ff69453b6cc0a0faf72e3af348c40475' 'ec6441942762f57a7debc025e4b8885e976c6f147802861856623e66f1832e1e486d5f2f5f131b6a095a2f66351927f67dfc02f8497d609954e7707c8f11e67b') 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 } pkgver() { date +"%Y.%m.%d" }