

























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.
@leon_buehler Thanks. Added bash completion & .service
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"
}
@ruifm, I made your suggested changes. Let me know if it works for you.
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.
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.
@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?
# 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.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
LND is now offering (pushing?) the option to run sqlite or postgres for a database backend:
https://github.com/lightningnetwork/lnd/blob/master/docs/db_migration_guide.md
I found that with using this PKGBUILD sqlite was not recognized/functional on startup. I used the provided binary from the github page and everything worked as expected.
I don't see anything wrong with the PGKBUILD, everything seems to be in place as far as build tags:
GO111MODULE=on go install -v -tags experimental,autopilotrpc,signrpc,walletrpc,chainrpc,invoicesrpc,routerrpc,watchtowerrpc,monitoring,peersrpc,kvdb_postgres,kvdb_sqlite,kvdb_etcd ./...
I'm mostly posting this for others who may run into the same issue.