blob: 7ef07fcf6109acaf6e0e6caf9f1b9674e67af40e (
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
|
# Maintainer: killab33z <killab33z @ protonmail-dot-ch>
pkgname=geowordlists-git
_pkgname="${pkgname%-git}"
pkgver=1.0.1.r105.g798fe1d
pkgrel=1
pkgdesc="Tool to generate wordlists of passwords containing cities at a defined distance around the client city."
arch=('any')
url="https://github.com/p0dalirius/geowordlists"
license=('custom:unknown')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=("$_pkgname")
conflicts=("$_pkgname" "$_pkgname-bin")
source=("git+$url")
sha512sums=('SKIP')
# https://wiki.archlinux.org/title/VCS_package_guidelines
pkgver() {
cd "$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
# https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|