1 @node Build-instructions
2 @section Build instructions
4 Make sure that Go is installed. For example to install it from packages:
8 @verb{|pkg install go|}
10 @verb{|apt install golang|}
14 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz
15 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz.sig
16 $ gpg --verify nncp-@value{VERSION}.tar.xz.sig nncp-@value{VERSION}.tar.xz
17 $ xz --decompress --stdout nncp-@value{VERSION}.tar.xz | tar xf -
18 $ cd nncp-@value{VERSION}
20 # look for bin/nncp-* binaries (and possibly hjson-cli one)
23 It uses @url{http://cr.yp.to/redo.html, redo} build system for that
24 examples. You can use either dozen of various implementations, or at
25 least minimalistic POSIX shell @command{contrib/do} (just replace
26 @command{redo} with @command{contrib/do} in the example above) included
27 in tarball. Following ones are tested to work with:
28 @url{http://www.goredo.cypherpunks.ru/, goredo} (NNCP's author creation),
29 @url{https://redo.readthedocs.io/, apenwarr/redo} (@code{contrib/do} is
30 from that project), @url{https://github.com/leahneukirchen/redo-c, redo-c}.
32 There is @command{install} target respecting @env{DESTDIR}. It will
33 install binaries and info-documentation:
36 # PREFIX=/usr/local redo install