blob: b88191bbf67676e92534d7efc3f89b3a074e1b83 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-spsdk-pqc
_name=${pkgname#python-}
pkgver=0.6.8
pkgrel=1
pkgdesc="Post-Quantum Crypto support for SPSDK"
arch=($CARCH)
url="https://pypi.org/project/${_name}"
license=(BSD-3-Clause)
depends=(
glibc
python
python-click
python-pyasn1
python-pycryptodome
python-typing_extensions
# AUR
pyinstaller
)
makedepends=(
cmake
python-build
python-installer
python-setuptools
python-setuptools-scm
python-toml
python-wheel
)
checkdepends=(
python-pytest
)
optdepends=()
groups=(spsdk-plugins)
# options=('!strip' '!debug')
provides=(${_name})
conflicts=(${_name})
replaces=(${_name})
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-${pkgver}.tar.gz")
sha512sums=('f1597a9361a9e7d626e73d2849f0bbd5396646bb9914faff4e552966f9f2d657155392d3eee67c46cffb9b6355e835de85556e06c6d5e5d94ea38368f9db746a')
_name=${_name//-/_}
build() {
cd ${srcdir}/$_name-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/$_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname}/
}
|