summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOliver Breitwieser2021-12-28 11:59:17 +0100
committerOliver Breitwieser2021-12-28 11:59:17 +0100
commitf0a1af45fd2471247bfef72356ad773ffa5f2964 (patch)
tree9ac42efea12c0a9bd3b4a6c0f4a9fbf7a2504c2a /PKGBUILD
parent93d31162a1ae5dc2c73b15e73066b9f644a37b3b (diff)
downloadaur-asfa.tar.gz
AUR: Update asfa
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0e38427b9cb..f43251f840b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Oliver Breitwieser <oliver@breitwieser.eu>
pkgname=asfa
-pkgver=0.9.0
-pkgrel=3
+pkgver=0.9.1
+pkgrel=1
pkgdesc='share files by upload via ssh and generation of a non-guessable link'
arch=('x86_64')
url="https://github.com/obreitwi/asfa"
@@ -13,17 +13,19 @@ source=()
md5sums=()
build() {
- cargo install --no-track --target-dir target --root target --version ${pkgver} --force ${pkgname}
+ RUSTFLAGS="-Ctarget-cpu=x86-64 -lssh2" cargo install --no-track --target-dir target --root target --version ${pkgver} --force ${pkgname}
local _folder_bin
_path_bin="target/bin/${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=${pkgver}" \
+ -o "${_folder_man}/man1/${pkgname}-${cmd}.1" \
+ "$_path_bin $cmd"
done
}