summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD26
2 files changed, 16 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 46375aab54ce..542686cd80b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
pkgbase = dirsearch
pkgdesc = Web path scanner/fuzzer, written in Python
pkgver = 0.4.3
- pkgrel = 3
- epoch = 1
+ pkgrel = 5
url = https://github.com/maurosoria/dirsearch
changelog = CHANGELOG.md
arch = any
- license = GPL2
+ license = GPL-2.0-only
makedepends = python-setuptools
+ makedepends = python-build
+ makedepends = python-wheel
+ makedepends = python-installer
depends = python
depends = python-certifi
depends = python-chardet
@@ -27,7 +29,6 @@ pkgbase = dirsearch
depends = python-colorama
depends = python-pyparsing
depends = python-beautifulsoup4
- backup = etc/dirsearch/default.conf
source = CHANGELOG.md
source = dirsearch-0.4.3.tgz::https://github.com/maurosoria/dirsearch/archive/refs/tags/v0.4.3.tar.gz
sha256sums = 31cf9550a127217b69c48f2e5b718fa4ffa787a66eb0e9f0877e554bbfbf3fb0
diff --git a/PKGBUILD b/PKGBUILD
index b7e52c1927e6..f36769d30108 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,35 @@
# Maintainer: LevitatingBusinessMan $(echo me-levitati+ng | sed s/\+/./g\;s/\-/@/)
# Previous maintainer : Kr1ss $(echo \<kr1ss+x-yandex+com\>|sed s/\+/./g\;s/\-/@/)
-
pkgname=dirsearch
-
-epoch=1
pkgver=0.4.3
-pkgrel=3
-
+pkgrel=5
pkgdesc='Web path scanner/fuzzer, written in Python'
arch=('any')
url="https://github.com/maurosoria/$pkgname"
-license=('GPL2')
-
-makedepends=('python-setuptools')
+license=('GPL-2.0-only')
+makedepends=('python-setuptools' 'python-build' 'python-wheel' 'python-installer')
depends=('python' 'python-certifi' 'python-chardet' 'python-urllib3' 'python-cryptography'
'python-pysocks' 'python-cffi' 'python-ntlm-auth' 'python-requests-ntlm' 'python-charset-normalizer'
'python-jinja' 'python-defusedxml' 'python-markupsafe' 'python-pyopenssl' 'python-idna'
'python-requests' 'python-colorama' 'python-pyparsing' 'python-beautifulsoup4')
-
changelog=CHANGELOG.md
-backup=("etc/$pkgname/default.conf")
source=('CHANGELOG.md' "$pkgname-$pkgver.tgz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('31cf9550a127217b69c48f2e5b718fa4ffa787a66eb0e9f0877e554bbfbf3fb0' 'acea117a5737b01a7c25c5d52057fc699382ee7079aeb3429c16d0ea6241b1db')
-
prepare() {
- sed -i '/^charset_normalizer/s/~=/>=/' "$srcdir/$pkgname-$pkgver/requirements.txt"
+ sed -i '/^charset_normalizer/s/~=/>=/' "$srcdir/$pkgname-$pkgver/requirements.txt"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
- PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 *.md -t"$pkgdir/usr/share/doc/$pkgname/"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 README.md -t"$pkgdir/usr/share/doc/$pkgname/"
}
-
# vim: ts=2 sw=2 et ft=PKGBUILD: