diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 9 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = asfa-git pkgdesc = share files by upload via ssh and generation of a non-guessable link - pkgver = 0.9.0.r6.gd641370 + pkgver = 0.9.1.r0.g3f45cac pkgrel = 1 url = https://github.com/obreitwi/asfa arch = x86_64 @@ -2,7 +2,7 @@ _pkgname=asfa pkgname=${_pkgname}-git -pkgver=0.9.0.r6.gd641370 +pkgver=0.9.1.r0.g3f45cac pkgrel=1 pkgdesc='share files by upload via ssh and generation of a non-guessable link' arch=('x86_64') @@ -52,19 +52,22 @@ _ensure_version_information() { build() { _ensure_version_information + local _version + _version="$(_cargo_version)" cd "$srcdir/$_pkgname" - # Ensure - cargo build --locked --release --target-dir=target + RUSTFLAGS="-Ctarget-cpu=x86-64 -lssh2" cargo build --locked --release --target-dir=target local _folder_bin _path_bin="target/release/${_pkgname}" local _folder_man _folder_man=target/release/man mkdir -p ${_folder_man}/man1 - help2man "${_path_bin}" > ${_folder_man}/man1/${_pkgname}.1 + help2man -o ${_folder_man}/man1/${_pkgname}.1 "${_path_bin}" # Generate info about all subcommands except for 'help' (which leads to error) "${_path_bin}" --help | awk 'enabled && $1 != "help" { print $1 } /^SUBCOMMANDS:$/ { enabled=1 }' \ | while read -r cmd; do - help2man "$_path_bin $cmd" > ${_folder_man}/man1/${_pkgname}-${cmd}.1 + help2man "--version-string=${_version}" \ + -o "${_folder_man}/man1/${_pkgname}-${cmd}.1" \ + "$_path_bin $cmd" done } |