summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3d09d2d672995a206cc7e1725f6d706ef3c437e (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.2.1
pkgrel=2
pkgdesc="Common Platform Enumeration for Python"
arch=(any)
url="https://github.com/nilp0inter/cpe"
license=('LGPL')
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=('e742635e13cc0f6e02cb62a367dc789fb0e7dba1317822a8760c8de312e36ec9')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}