mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
refactor: use go build style template
This commit is contained in:
parent
a535493768
commit
5b8ec8f356
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue