File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-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=uff
5
+ pkgver=44.e32e6ee
6
+ pkgrel=1
7
+ pkgdesc=' Unleashed ffuf. A fork of ffuf with more functions & a modified HTTP stack.'
8
+ arch=(' x86_64' ' aarch64' )
9
+ groups=(' blackarch' ' blackarch-fuzzer' ' blackarch-webapp' )
10
+ url=' https://github.com/sw33tLie/uff'
11
+ license=(' MIT' )
12
+ depends=(' glibc' )
13
+ makedepends=(' git' ' go' )
14
+ source=(" git+https://github.com/sw33tLie/$pkgname .git" )
15
+ sha512sums=(' SKIP' )
16
+
17
+ pkgver () {
18
+ cd $pkgname
19
+
20
+ ( set -o pipefail
21
+ git describe --long --tags --abbrev=7 2> /dev/null |
22
+ sed ' s/\([^-]*-g\)/r\1/;s/-/./g' ||
23
+ printf " %s.%s" " $( git rev-list --count HEAD) " \
24
+ " $( git rev-parse --short=7 HEAD) "
25
+ )
26
+ }
27
+
28
+ build () {
29
+ cd $pkgname
30
+
31
+ GOPATH=" $srcdir " go mod download
32
+ GOPATH=" $srcdir " go build \
33
+ -trimpath \
34
+ -buildmode=pie \
35
+ -mod=readonly \
36
+ -modcacherw \
37
+ -ldflags " -s -w" \
38
+ -o $pkgname .
39
+ }
40
+
41
+ package () {
42
+ cd $pkgname
43
+
44
+ install -Dm 755 $pkgname " $pkgdir /usr/bin/$pkgname "
45
+ install -Dm 644 -t " $pkgdir /usr/share/doc/$pkgname /" * .md
46
+ install -Dm 644 " ffufrc.example" " $pkgdir /usr/share/$pkgname /ffufrc.example"
47
+
48
+ cp -a resources/ " $pkgdir /usr/share/doc/$pkgname /"
49
+
50
+ install -Dm 644 LICENSE " $pkgdir /usr/share/licenses/$pkgname /LICENSE"
51
+ }
52
+
You can’t perform that action at this time.
0 commit comments