blob: 97b26d985016e59159a539b80ec6327a889c6033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Contributor: Jonathan Knapp <jaknapp8+aur@gmail.com>
# Contributor: Roasbeef
# URL: https://github.com/lightningnetwork/lnd
# Upstream: https://github.com/lightningnetwork/lnd
pkgname=('lnd-git')
pkgver=0.17.3.beta.r15704.c32edbd73
pkgrel=1
pkgdesc='The Lightning Network Daemon, for secure off-chain bitcoin transactions.'
arch=('x86_64')
url='https://github.com/lightningnetwork/lnd'
license=('MIT')
depends=('glibc')
makedepends=('git' 'go' 'fakeroot')
provides=('lnd' 'lnd-cli')
conflicts=('lnd')
source=("$pkgname::git+https://github.com/lightningnetwork/lnd.git")
md5sums=('SKIP')
pkgver() {
cd $pkgname
_tag=$(git tag --list --sort=taggerdate | grep "^v" | tail -n1 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
printf $_tag;
printf ".r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
cd cmd/lnd
go build -buildmode=pie -tags="autopilotrpc signrpc walletrpc chainrpc invoicesrpc routerrpc watchtowerrpc" -ldflags -extldflags=-Wl,-z,now,-z,relro .
cd ../lncli
go build -buildmode=pie -tags="autopilotrpc invoicesrpc walletrpc routerrpc watchtowerrpc" -ldflags -extldflags=-Wl,-z,now,-z,relro .
}
package() {
cd $pkgname
install -Dm 755 "cmd/lnd/lnd" -t "$pkgdir/usr/bin";
install -Dm 755 "cmd/lncli/lncli" -t "$pkgdir/usr/bin";
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|