vim-go-tools/PKGBUILD
2024-04-04 22:24:39 +00:00

28 lines
833 B
Bash

# Maintainer: Knut Ahlers <knut at ahlers dot me>
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'
'ccc7b1e6f45af42c29de43fa101e885b49f40267f6470e173d2b7200149a9c647ca1779e784ff44d099ad327ac53449e5aa7e28d72bedaaf5a7b426c6508f74e')
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"
}