blob: e57b66c1b3a61ceb85d8a596b2b755a009bf4aa1 (
plain)
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
44
45
46
47
|
# Maintainer: Cody Schafer <dev@codyps.com>
_bpn=hcxtools
pkgname=$_bpn-git
pkgdesc="Portable solution for capturing wlan traffic and conversion to hashcat and jtr formats"
license=('MIT')
arch=('i686' 'x86_64')
url="https://github.com/ZerBea/$_bpn"
pkgver=4.2.1.r1.g74f5eb4
pkgrel=1
source=("git+$url")
md5sums=('SKIP')
conflicts=("$_bpn")
provides=("$_bpn=$pkgver")
makedepends=('make' 'gcc')
depends=('curl' 'libpcap' 'zlib' 'openssl')
# from https://wiki.archlinux.org/index.php/VCS_package_guidelines
pkgver() {
cd "$srcdir/$_bpn"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build () {
cd "$srcdir/$_bpn"
make
}
package () {
cd "$srcdir/$_bpn"
make DESTDIR=$pkgdir PREFIX=/usr install
for _docfile in README.md changelog; do
install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_bpn}/${_docfile}"
done
install -D -v -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
}
|