summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3679aa2c681697953c05a5ce38ae7ae827ff751b (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
# Maintainer: haxibami <contact at haxibami dot net>

pkgname=python-sslpsk-pmd3
_pkgname="${pkgname#python-}"
pkgver=1.0.3
pkgrel=1
pkgdesc='Fork of sslpsk with support for latest python versions'
arch=('any')
url='https://github.com/doronz88/sslpsk-pmd3'
license=('Apache-2.0')
depends=('python' 'openssl' 'openssl-1.1')
makedepends=('python-build' 'python-wheel' 'python-installer' 'python-setuptools' 'python-setuptools-scm')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('62a5764870053c55e7aba00bab5de2533ba2dc79a575f3f2693a9df320045d82')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
  python -m build --wheel --no-isolation
}

# check() {
#   cd "${srcdir}/${_pkgname}-${pkgver}"
#   local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
#   export PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-cpython-${python_version}"
#   python setup.py test
# }

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}