mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
4e898d6161
This commit has been automatically submitted by Github Actions.
28 lines
801 B
Bash
28 lines
801 B
Bash
TERMUX_PKG_HOMEPAGE=https://pressly.github.io/goose
|
|
TERMUX_PKG_DESCRIPTION="A database migration tool. Supports SQL migrations and Go functions."
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.23.0"
|
|
TERMUX_PKG_SRCURL="https://github.com/pressly/goose/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
|
TERMUX_PKG_SHA256=f536522a4575cf9c74f32c3f7a33c4920d2740d8a22da59f36a90bc369cbe199
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
go mod tidy
|
|
}
|
|
|
|
termux_step_make() {
|
|
go build -o goose ./cmd/goose
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "${TERMUX_PREFIX}"/bin goose
|
|
}
|
|
|
|
termux_step_install_license() {
|
|
install -Dm600 -t "${TERMUX_PREFIX}/share/doc/${TERMUX_PKG_NAME}" \
|
|
"${TERMUX_PKG_SRCDIR}/LICENSE"
|
|
}
|