blob: 73c378b3546ef0f548b43ae728e927afd8d42045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Avelino <t AT avelino DOT xxx>
pkgname=vim-bootstrap
pkgver=1.21.10
pkgrel=1
pkgdesc="Vim Bootstrap is generator provides a simple method of generating a .vimrc configuration for vim"
arch=('any')
url="https://github.com/editor-bootstrap/vim-bootstrap"
license=("MIT")
makedepends=("go")
provides=("editor-bootstrap")
source=(
"https://github.com/editor-bootstrap/vim-bootstrap/archive/v${pkgver}.tar.gz"
)
sha256sums=("SKIP")
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -pv build/
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
go mod download
go build -o build/${pkgname} -ldflags="-s -w" ./cmd/vim-bootstrap/*.go
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dpm755 -D "build/${pkgname}" "${pkgdir}/usr/local/bin/${pkgname}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|