New Package: runas-2021.01.31_1
This commit is contained in:
parent
f62a637e14
commit
30dd1c1f8b
1 changed files with 33 additions and 0 deletions
33
srcpkgs/runas/template
Normal file
33
srcpkgs/runas/template
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Template file for 'runas'
|
||||
pkgname=runas
|
||||
version=2021.01.31
|
||||
revision=2
|
||||
archs="x86_64 x86_64-musl i686"
|
||||
conf_files="/etc/runas.yml"
|
||||
repository="cereus-extra"
|
||||
build_style=cargo
|
||||
hostmakedepends="git"
|
||||
short_desc="An alternative to sudo and doas written in Rust"
|
||||
maintainer="Kevin F. <kevinfigueroart@proton.me>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/keyboard-slayer/runas"
|
||||
|
||||
do_fetch() {
|
||||
git clone ${homepage} ${wrksrc}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64-musl" ]; then
|
||||
vbin target/x86_64-unknown-linux-musl/release/runas
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
vbin target/x86_64-unknown-linux-gnu/release/runas
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
vbin target/i686-unknown-linux-gnu/release/runas
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
cat src/runas.yml | head -n +5 | tee src/runas.yml
|
||||
vinstall src/runas.yml 644 etc/
|
||||
}
|
Loading…
Add table
Reference in a new issue