Added pkgbuild

This commit is contained in:
2023-08-14 19:10:34 +03:00
parent 48635fc091
commit 0d95364e50

25
PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
# Maintainer: AB <gh@hexor.ru>
pkgname=rexec
pkgver=1.0.1.r8.g48635fc
pkgrel=1
pkgdesc="Parallel SSH executor"
url="https://github.com/house-of-vanity/rexec"
license=("WTFPL")
arch=("x86_64")
makedepends=("cargo")
pkgver() {
(git describe --long --tags || echo "$pkgver") | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
return 0
}
package() {
cd ..
usrdir="$pkgdir/usr"
mkdir -p $usrdir
cargo install --no-track --path . --root "$usrdir"
}