Skip to content

Commit 62d12d4

Browse files
committed
nsec3map: python3 support.
1 parent 77b7304 commit 62d12d4

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

packages/nsec3map/PKGBUILD

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,38 @@
22
# See COPYING for license details.
33

44
pkgname=nsec3map
5-
pkgver=133.d145b13
6-
pkgrel=3
5+
pkgver=v0.8.2.r0.gd145b13
6+
pkgrel=4
77
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')
98
arch=('any')
9+
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
1010
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')
1414
source=("git+https://github.com/anonion0/$pkgname.git")
1515
sha512sums=('SKIP')
1616

1717
pkgver() {
1818
cd $pkgname
1919

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+
)
2726
}
2827

2928
build() {
30-
cd $pkgname
29+
cd "$pkgname"
3130

32-
python2 setup.py build_ext
31+
python -m build --wheel --no-isolation
3332
}
3433

3534
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"
4136

42-
python2 setup.py install --root="$pkgdir" --prefix=/usr -O1
37+
python -m installer --destdir="$pkgdir" dist/*.whl
4338
}
4439

0 commit comments

Comments
 (0)