|
2 | 2 | # See COPYING for license details.
|
3 | 3 |
|
4 | 4 | pkgname=nsec3map
|
5 |
| -pkgver=133.d145b13 |
6 |
| -pkgrel=3 |
| 5 | +pkgver=v0.8.2.r0.gd145b13 |
| 6 | +pkgrel=4 |
7 | 7 | pkgdesc='A tool to enumerate the resource records of a DNS zone using its DNSSEC NSEC or NSEC3 chain.'
|
8 |
| -groups=('blackarch' 'blackarch-scanner' 'blackarch-recon') |
9 | 8 | arch=('any')
|
| 9 | +groups=('blackarch' 'blackarch-recon' 'blackarch-scanner') |
10 | 10 | url='https://github.com/anonion0/nsec3map'
|
11 |
| -license=('GPL3') |
12 |
| -depends=('python2' 'python2-dnspython' 'python2-numpy' 'python2-scipy' 'openssl') |
13 |
| -makedepends=('python2-setuptools' 'git') |
| 11 | +license=('GPL-3.0-only') |
| 12 | +depends=('python' 'python-dnspython' 'python-numpy' 'python-scipy' 'openssl') |
| 13 | +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') |
14 | 14 | source=("git+https://github.com/anonion0/$pkgname.git")
|
15 | 15 | sha512sums=('SKIP')
|
16 | 16 |
|
17 | 17 | pkgver() {
|
18 | 18 | cd $pkgname
|
19 | 19 |
|
20 |
| - echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) |
21 |
| -} |
22 |
| - |
23 |
| -prepare() { |
24 |
| - cd $pkgname |
25 |
| - |
26 |
| - sed -i "s|/usr/local/share/man/man1/|/usr/share/man/man1|" setup.py |
| 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 | + ) |
27 | 26 | }
|
28 | 27 |
|
29 | 28 | build() {
|
30 |
| - cd $pkgname |
| 29 | + cd "$pkgname" |
31 | 30 |
|
32 |
| - python2 setup.py build_ext |
| 31 | + python -m build --wheel --no-isolation |
33 | 32 | }
|
34 | 33 |
|
35 | 34 | package() {
|
36 |
| - cd $pkgname |
37 |
| - |
38 |
| - install -dm 755 "$pkgdir/usr/share/bash-completion/completions" |
39 |
| - install -Dm 644 n3map.bash_completion \ |
40 |
| - "$pkgdir/usr/share/bash-completion/completions/" |
| 35 | + cd "$pkgname" |
41 | 36 |
|
42 |
| - python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 |
| 37 | + python -m installer --destdir="$pkgdir" dist/*.whl |
43 | 38 | }
|
44 | 39 |
|
0 commit comments