-
-
Notifications
You must be signed in to change notification settings - Fork 550
/
PKGBUILD
44 lines (36 loc) · 1.05 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=cook
pkgver=217.652a940
pkgrel=1
groups=('blackarch' 'blackarch-automation')
pkgdesc="Easily create word's permutation and combination to generate complex wordlists and passwords."
arch=('x86_64' 'aarch64')
url='https://github.com/giteshnxtlvl/cook'
license=('MIT')
makedepends=('git' 'go')
source=("git+https://github.com/giteshnxtlvl/$pkgname.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd $pkgname
GOPATH="$srcdir" go mod init go.mod
GOPATH="$srcdir" go mod tidy
GOPATH="$srcdir" go mod download
GOPATH="$srcdir" go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-s -w" \
-o $pkgname
}
package() {
cd $pkgname
install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" "$pkgname.yaml"
}