blob: e2931e077b5b7695c999b0b772074f5869270e2e (
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
|
# Maintainer: Mark Collins <tera_1225 [aaht] hotmail ðot com>
pkgname=python-cpe
_name="${pkgname#python-}"
pkgver=1.3.0
pkgrel=1
pkgdesc="Common Platform Enumeration for Python"
arch=(any)
url="https://github.com/nilp0inter/cpe"
license=('LGPL-3.0-only')
depends=(
python
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('797b85a2d12c4857a39b21d67ef8d87e2ea14c352c2ebceb5a69ed375b757b87')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|