syncthing: Bundle manual pages in package
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 11 Apr 2017 20:26:35 +0000 (22:26 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 11 Apr 2017 20:26:35 +0000 (22:26 +0200)
packages/syncthing/build.sh

index a537a3e..106e2d7 100644 (file)
@@ -31,9 +31,14 @@ termux_step_make(){
                -no-upgrade \
                -version v$TERMUX_PKG_VERSION \
                build
-
 }
 
 termux_step_make_install() {
        cp go/src/github.com/syncthing/syncthing/syncthing $TERMUX_PREFIX/bin/
+
+       for section in 1 5 7; do
+               local MANDIR=$PREFIX/share/man/man$section
+               mkdir -p $MANDIR
+               cp $TERMUX_PKG_SRCDIR/man/*.$section $MANDIR
+       done
 }