Skip to content

Commit a816ace

Browse files
committed
sliver: initial commit.
1 parent e00b8bf commit a816ace

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

packages/sliver/PKGBUILD

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2+
# See COPYING for license details.
3+
4+
pkgname=sliver
5+
pkgver=v1.5.39.r1447.g65eb725
6+
pkgrel=1
7+
pkgdesc='Opensource C2 framework.'
8+
groups=('blackarch' 'blackarch-backdoor' 'blackarch-automation')
9+
url='https://github.com/BishopFox/sliver'
10+
arch=('x86_64' 'aarch64')
11+
makedepends=('git' 'go' 'zip' 'unzip')
12+
license=('BSD-3-Clause')
13+
source=("$pkgname::git+https://github.com/BishopFox/$pkgname.git")
14+
sha256sums=('SKIP')
15+
16+
pkgver() {
17+
cd $pkgname
18+
19+
( set -o pipefail
20+
git describe --long --tags --abbrev=7 2>/dev/null |
21+
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
22+
printf "%s.%s" "$(git rev-list --count HEAD)" \
23+
"$(git rev-parse --short=7 HEAD)"
24+
)
25+
}
26+
27+
build() {
28+
make --directory $pkgname
29+
}
30+
31+
package() {
32+
install -Dm 755 "$pkgname/$pkgname-server" "$pkgdir/usr/bin/$pkgname-server"
33+
install -Dm 755 "$pkgname/$pkgname-client" "$pkgdir/usr/bin/$pkgname-client"
34+
35+
install -dm 755 "$pkgdir/usr/share/bash-completion/completions/"
36+
"$pkgname/$pkgname-server" completion bash > \
37+
"$pkgdir/usr/share/bash-completion/completions/$pkgname-server"
38+
"$pkgname/$pkgname-client" completion bash > \
39+
"$pkgdir/usr/share/bash-completion/completions/$pkgname-client"
40+
41+
install -dm 755 "$pkgdir/usr/share/fish/vendor_completions.d/"
42+
"$pkgname/$pkgname-server" completion fish > \
43+
"$pkgdir/usr/share/fish/vendor_completions.d/$pkgname-server.fish"
44+
"$pkgname/$pkgname-client" completion fish > \
45+
"$pkgdir/usr/share/fish/vendor_completions.d/$pkgname-client.fish"
46+
47+
install -dm 755 "$pkgdir/usr/share/zsh/site-functions/"
48+
"$pkgname/$pkgname-server" completion zsh > \
49+
"$pkgdir/usr/share/zsh/site-functions/_$pkgname-server"
50+
"$pkgname/$pkgname-client" completion zsh > \
51+
"$pkgdir/usr/share/zsh/site-functions/_$pkgname-client"
52+
}
53+

0 commit comments

Comments
 (0)