refactor: use go build style template

This commit is contained in:
thomas 2024-11-01 17:28:31 +00:00 committed by classabbyamp
parent a535493768
commit 5b8ec8f356

View File

@ -4,6 +4,8 @@ version=4.18.1
revision=1
build_style=go
go_import_path="github.com/golang-migrate/migrate/v4"
go_package="./cmd/migrate"
go_ldflags="-X main.Version=${version}"
short_desc="Database migrations CLI written in Golang"
maintainer="Thomas Treffry <t.treffry@gmail.com>"
license="MIT"
@ -11,11 +13,6 @@ homepage="https://github.com/golang-migrate/migrate"
distfiles="https://github.com/golang-migrate/migrate/archive/refs/tags/v${version}.tar.gz"
checksum="06cb38c81f0152670c730e906a27f49b353958fe90dcdf9f90f318785c19977f"
do_build() {
VERSION="$version" make build
}
do_install() {
vbin migrate
post_install() {
vlicense LICENSE
}