File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments