refactor: use go build style template
This commit is contained in:
parent
a535493768
commit
5b8ec8f356
@ -4,6 +4,8 @@ version=4.18.1
|
|||||||
revision=1
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/golang-migrate/migrate/v4"
|
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"
|
short_desc="Database migrations CLI written in Golang"
|
||||||
maintainer="Thomas Treffry <t.treffry@gmail.com>"
|
maintainer="Thomas Treffry <t.treffry@gmail.com>"
|
||||||
license="MIT"
|
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"
|
distfiles="https://github.com/golang-migrate/migrate/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum="06cb38c81f0152670c730e906a27f49b353958fe90dcdf9f90f318785c19977f"
|
checksum="06cb38c81f0152670c730e906a27f49b353958fe90dcdf9f90f318785c19977f"
|
||||||
|
|
||||||
do_build() {
|
post_install() {
|
||||||
VERSION="$version" make build
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vbin migrate
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user