blob: 1c61232ed8c9557ec6c60b2568a48b573f324c2a (
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
|
# 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.5.1.beta.172.g8c5d6842
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=()
source=("$pkgname::git+https://github.com/lightningnetwork/lnd.git")
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/./g'
}
build() {
cd $pkgname
go build -buildmode=pie -ldflags -extldflags=-Wl,-z,now,-z,relro .
cd cmd/lncli
go build -buildmode=pie -ldflags -extldflags=-Wl,-z,now,-z,relro .
}
package() {
cd $pkgname
install -Dm 755 "lnd" -t "$pkgdir/usr/bin";
install -Dm 755 "cmd/lncli/lncli" -t "$pkgdir/usr/bin";
install -D -m644 LICENSE "$pkgdir/LICENSE"
}
|