Skip to content

Commit 0838851

Browse files
authored
add s3enum (#4174)
1 parent 211e7f7 commit 0838851

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

packages/s3enum/PKGBUILD

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2+
# See COPYING for license details.
3+
4+
pkgname=s3enum
5+
pkgver=v1.0.0.r9.g498cb74
6+
pkgrel=1
7+
pkgdesc='Amazon S3 bucket enumeration.'
8+
arch=('x86_64' 'aarch64')
9+
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
10+
url='https://github.com/koenrh/s3enum'
11+
license=('ISC')
12+
depends=()
13+
makedepends=('git' 'go')
14+
source=("git+https://github.com/koenrh/$pkgname.git")
15+
sha512sums=('SKIP')
16+
17+
pkgver() {
18+
cd $pkgname
19+
20+
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
21+
}
22+
23+
build() {
24+
cd $pkgname
25+
26+
GOPATH="$srcdir" go mod download
27+
GOPATH="$srcdir" go build \
28+
-trimpath \
29+
-buildmode=pie \
30+
-mod=readonly \
31+
-modcacherw \
32+
-ldflags "-s -w" \
33+
-o $pkgname .
34+
}
35+
36+
package() {
37+
cd $pkgname
38+
39+
install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
40+
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
41+
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42+
}
43+

0 commit comments

Comments
 (0)