Package Details: lnd-git v0.6.beta.rc2.r0.g3a19afe4-1

Git Clone URL: https://aur.archlinux.org/lnd-git.git (read-only)
Package Base: lnd-git
Description: The Lightning Network Daemon, for secure off-chain bitcoin transactions.
Upstream URL: https://github.com/lightningnetwork/lnd
Keywords: bitcoin lightning_network
Licenses: MIT
Provides: lnd, lnd-cli
Submitter: thann
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 3
Popularity: 0.069748
First Submitted: 2017-06-13 03:10
Last Updated: 2019-04-04 06:30

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

pizzaman commented on 2018-12-12 10:14

@blacktemplar Upstream upgraded their supported Go version 1.10->1.11

With Go 1.11 (https://blog.golang.org/go1.11) they introduced "modules" which changes how packages are installed. The dependency dep is not needed anymore.

PKGBUILD changed substantially.

dmp1ce commented on 2018-12-10 16:41

Sorry. I forgot, I'm building from my github repository. https://github.com/dmp1ce/lnd-git

It looks like this repository needs and update. I removed dependency on dep.

blacktemplar commented on 2018-12-10 13:45

@dmp1ce

I just retried and still get the error. The command "dep ensure" results in the error, I use the following dep version: (output of dep version)

   dep:
    version     : devel
    build date  : 
    git hash    : 
    go version  : go1.10.3
    go compiler : gc
    platform    : linux/amd64
    features    : ImportDuringSolve=false

dmp1ce commented on 2018-12-10 12:11

@blacktemplar possibly a temporary upstream issue. The package is building fine for me now.

blacktemplar commented on 2018-12-10 10:45

Just tried to install this and got the following error in package():

"could not find project Gopkg.toml, use dep init to initiate a manifest"

dmp1ce commented on 2018-07-18 14:37

I updated the PKGBUILD which now works for me. https://github.com/dmp1ce/lnd-git

dmp1ce commented on 2018-07-17 18:00

Something along these lines might get it compiling:

diff --git a/PKGBUILD b/PKGBUILD
index 3e3d6cb..f1d1611 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 # Upstream: https://github.com/lightningnetwork/lnd

 pkgname=('lnd-git')
-pkgver=0.2.1.alpha.291.ge4563ca
+pkgver=0.4.2.beta.381.g6dff599d
 pkgrel=1
 pkgdesc='The Lighting Network Daemon, for secure off-chain bitcoin transactions.'
 arch=('i686' 'x86_64')
@@ -17,27 +17,34 @@ conflicts=('btcd')
 source=("$pkgname::git+https://github.com/lightningnetwork/lnd.git")
 md5sums=('SKIP')

+# create a fake go path directory and pushd into it
+# $1 real directory
+# $2 gopath directory
+_fake_gopath_pushd() {
+    mkdir -p "$GOPATH/src/${2%/*}"
+    rm -f "$GOPATH/src/$2"
+    ln -rsT "$1" "$GOPATH/src/$2"
+    pushd  "$GOPATH/src/$2" >/dev/null
+}
+
+_fake_gopath_popd() {
+    popd >/dev/null
+}
+
 pkgver() {
   cd $pkgname
   git describe --tags | sed 's/^v//;s/-/./g'
 }

-prepare() {
+build() {
   export GOPATH="$srcdir"
-  rm -fr "$srcdir/src"
-  git clone "$srcdir/$pkgname" "$GOPATH/src/github.com/lightningnetwork/lnd"
+  _fake_gopath_pushd lnd-git github.com/lightningnetwork/lnd
+  go get -d -v ./...
+  make && make install
+  _fake_gopath_popd
 }

 package() {
-  export GOPATH="$srcdir"
-  cd "$GOPATH/src/github.com/lightningnetwork/lnd"
-  glide install
-  go install . ./cmd/...
-  go get -u github.com/roasbeef/btcutil
-  cd $GOPATH/src/github.com/roasbeef/btcd
-  glide install
-  go install . ./cmd/...
-
   for _bin in btcctl btcd lnd; do
     install -Dm 755 "$srcdir/bin/$_bin" -t "$pkgdir/usr/bin";
   done

I'm not sure because right now I'm getting these errors:

github.com/awalterschulze/gographviz/ast
github.com/awalterschulze/gographviz/internal/errors
# github.com/lightningnetwork/lnd/chainntnfs/neutrinonotify
chainntnfs/neutrinonotify/neutrino.go:145:3: undefined: neutrino.WatchTxIDs
chainntnfs/neutrinonotify/neutrino.go:322:7: undefined: neutrino.AddTxIDs
chainntnfs/neutrinonotify/neutrino.go:631:3: undefined: neutrino.WatchOutPoints
chainntnfs/neutrinonotify/neutrino.go:667:3: undefined: neutrino.AddOutPoints
github.com/awalterschulze/gographviz/internal/lexer
# github.com/lightningnetwork/lnd/routing/chainview
routing/chainview/neutrino.go:109:3: undefined: neutrino.WatchOutPoints
routing/chainview/neutrino.go:326:23: undefined: builder.OutPointToFilterEntry
routing/chainview/neutrino.go:333:3: undefined: neutrino.AddOutPoints
# github.com/lightningnetwork/lnd/lnwallet/btcwallet
lnwallet/btcwallet/blockchain.go:44:4: undefined: neutrino.WatchOutPoints
github.com/awalterschulze/gographviz/internal/parser
github.com/lightningnetwork/lnd/lntest
github.com/awalterschulze/gographviz
github.com/lightningnetwork/lnd/cmd/lncli
# github.com/lightningnetwork/lnd/cmd/lncli
cmd/lncli/commands.go:2410:22: cannot use attrs (type gographviz.Attrs) as type map[string]string in argument to graphCanvas.AddNode
cmd/lncli/commands.go:2448:57: cannot use gographviz.Attrs literal (type gographviz.Attrs) as type map[string]string in argument to graphCanvas.AddEdge
==> ERROR: A failure occurred in build().
    Aborting...

pizzaman commented on 2018-03-16 04:16

I get the following

==> Starting package()...
[ERROR] Failed to find glide.yaml file in directory tree: Cannot resolve parent of /
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Makepkg was unable to build lnd-git.

In lnd v0.4-beta Glide files were removed https://github.com/lightningnetwork/lnd/commit/a4a24ca6af487d106de5fcc26d51f9b86f82297e

Here is a working PKGBUILD without btcd. http://p.luis.im/index.php?3yz@raw