termux-packages/packages/lnd/build.sh

24 lines
1.1 KiB
Bash
Raw Normal View History

2019-09-13 14:32:47 +02:00
TERMUX_PKG_HOMEPAGE=https://github.com/lightningnetwork/lnd
TERMUX_PKG_DESCRIPTION="Lightning Network Daemon"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
2021-10-06 19:27:32 +02:00
TERMUX_PKG_VERSION=0.13.3-beta
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=(https://github.com/lightningnetwork/lnd/archive/v${TERMUX_PKG_VERSION}.tar.gz
https://github.com/lightningnetwork/lnd/releases/download/v${TERMUX_PKG_VERSION}/vendor.tar.gz)
2021-10-06 19:27:32 +02:00
TERMUX_PKG_SHA256=(c642c14bbf34e61d1ac566d22a9775e97e3671fff90552a0060d791e533a5af2
304a59ce38ffc03c1fd4bdf9294560793865f6b19646aea03b1d5da482ff83d3)
TERMUX_PKG_DEPENDS="bitcoin"
TERMUX_PKG_SERVICE_SCRIPT=("lnd" 'exec lnd 2>&1')
2019-09-13 14:32:47 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
2020-03-08 18:02:16 +01:00
termux_setup_golang
GO111MODULE=on go build -tags linux -v -mod=vendor -ldflags "-X github.com/lightningnetwork/lnd/build.Commit=v$TERMUX_PKG_VERSION" ./cmd/lnd
GO111MODULE=on go build -tags linux -v -mod=vendor -ldflags "-X github.com/lightningnetwork/lnd/build.Commit=v$TERMUX_PKG_VERSION" ./cmd/lncli
2019-09-13 14:32:47 +02:00
}
termux_step_make_install() {
2020-03-08 18:02:16 +01:00
install -Dm700 lnd lncli "$TERMUX_PREFIX"/bin/
2019-09-13 14:32:47 +02:00
}