From 3ebd5fc4275538d2ef48e80066d6d3cd70d5d0fc Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 26 Jun 2024 13:18:18 +0100 Subject: [PATCH] New package: golang-migrate-4.17.1 --- srcpkgs/golang-migrate/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/golang-migrate/template diff --git a/srcpkgs/golang-migrate/template b/srcpkgs/golang-migrate/template new file mode 100644 index 00000000000000..0ebaa01285e22b --- /dev/null +++ b/srcpkgs/golang-migrate/template @@ -0,0 +1,22 @@ +# Template file for 'golang-migrate' +pkgname=golang-migrate +version=4.17.1 +revision=1 +wrksrc="migrate-${version}" +build_style=go +go_import_path="github.com/golang-migrate/migrate/v4" +short_desc="Database migrations CLI written in Golang" +maintainer="Thomas Treffry " +license="MIT" +homepage="https://github.com/golang-migrate/migrate" +distfiles="https://github.com/golang-migrate/migrate/archive/refs/tags/v${version}.tar.gz" +checksum="59a92e27d58f22ce3270086d385b3548a2a44e09f91b0eda3e245f94bcf8f081" + +do_build() { + VERSION="$version" make build +} + +do_install() { + vbin migrate + vlicense LICENSE +}