blob: 12d51f7b5640eb2d0752986a9d53fd474785796c (
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=python-ten-git
_pkgname=ten
pkgver=r156.bf4098b
pkgrel=1
pkgdesc='A (small) web exploit framework for Python.'
arch=('any')
url='https://github.com/cfreal/ten'
license=('custom')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=("python-$_pkgname")
conflicts=("python-$_pkgname" "python-$_pkgname-bin")
source=("git+$url")
sha512sums=('SKIP')
# https://wiki.archlinux.org/title/VCS_package_guidelines
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
# 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
}
|