summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 9 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2ee3d12761d..c076f29e0a4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = asfa
pkgdesc = share files by upload via ssh and generation of a non-guessable link
- pkgver = 0.9.0
- pkgrel = 3
+ pkgver = 0.9.1
+ pkgrel = 1
url = https://github.com/obreitwi/asfa
arch = x86_64
license = MIT
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
}