Package Details: lnd 0.19.0_beta-1

Git Clone URL: https://aur.archlinux.org/lnd.git (read-only, click to copy)
Package Base: lnd
Description: The Lightning Network Daemon, for secure off-chain bitcoin transactions.
Upstream URL: https://github.com/lightningnetwork/lnd
Keywords: bitcoin cryptocurrency lightningnetwork lightning_network lnd
Licenses: MIT
Conflicts: lnd-git
Provides: lncli, lnd
Submitter: dmp1ce
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 7
Popularity: 0.37
First Submitted: 2018-07-20 13:43 (UTC)
Last Updated: 2025-05-31 03:39 (UTC)

Latest Comments

1 2 3 Next › Last »

leon_buehler commented on 2025-05-02 15:28 (UTC)

I just noticed that the .service file in the lnd repo assumes that the binarys are stored in /usr/local/bin but on arch they are in /usr/bin . Idk if that is worth fixing, so iam just mentioning it here. I personally just symlink the lnd binary into /usr/local/bin.

pizzaman commented on 2025-05-01 01:26 (UTC)

@leon_buehler Thanks. Added bash completion & .service

leon_buehler commented on 2025-04-30 14:05 (UTC)

The upstream repo contains bash completions and a systemd service file inside of the "contrib" directory. I think those could be included into the PKGBUILD so it would look like:

package() {
  cd "$pkgname-$_pkgver"
  for _bin in lnd lncli; do
   install -Dm755 build/$_bin -t "${pkgdir:?}/usr/bin";
  done
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 contrib/lncli.bash-completion "$pkgdir/usr/share/bash-completion/completions/lncli"
  install -Dm644 contrib/init/lnd.service "$pkgdir/usr/lib/systemd/system/lnd.service"
}

dmp1ce commented on 2022-09-30 10:59 (UTC)

@ruifm, I made your suggested changes. Let me know if it works for you.

ruifm commented on 2022-09-30 09:41 (UTC)

Could you add 'aarch64' to arch=? I can confirm that it works.

Also, you should replace source_x86_64 by source and sha512sums_x86_64 by sha512sums as the actual source is just source code files and are architecture agnostic.

bitcoinlizard commented on 2021-10-15 00:24 (UTC)

Could you edit the make && make install line to look like this?

make && make install tags="experimental autopilotrpc signrpc walletrpc chainrpc invoicesrpc routerrpc watchtowerrpc"

The build tags are not well documented by some are needed for keysend to work.

dmp1ce commented on 2021-10-14 23:57 (UTC)

@Spixmaster, Is that right? line 43 sets $GOPATH to "$srcdir".

build() {
  export GOPATH="$srcdir/GOPATH"
  _fake_gopath_pushd "$pkgname" github.com/lightningnetwork/lnd
  make && make install
  _fake_gopath_popd
}

Are you seeing errors when trying to build or the script just looks wrong?

Spixmaster commented on 2021-10-14 12:38 (UTC) (edited on 2021-10-14 12:39 (UTC) by Spixmaster)

# 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 || exit
}

There are several lines that do not work because packages only have the permissions to access files in "${pkgdir}". You need to use as a prefix. Especially, the lines above create issues.

Spixmaster commented on 2021-03-03 18:36 (UTC) (edited on 2021-10-14 12:35 (UTC) by Spixmaster)

The PKGBUILD has the issue that it cannot be reinstalled. First, the yay cache (~/.cache/yay/lnd/) needs to be emptied. Otherwise, this error message appears error cloning lnd: fatal: Zielpfad 'lnd' existiert bereits und ist kein leeres Verzeichnis. which means that the directory "lnd" already exists.