Skip to content

Commit

Permalink
python-tls-parser: change to PEP517
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Venz <[email protected]>
  • Loading branch information
ikstream authored and noptrix committed Jul 2, 2023
1 parent 3635288 commit 36c0a3e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions packages/python-tls-parser/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@ pkgdesc='Small library to parse TLS records.'
arch=('x86_64' 'aarch64')
url='https://pypi.python.org/pypi/tls-parser/'
license=('custom:unknown')
makedepends=('python-setuptools')
makedepends=('python-build' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/tls_parser-$pkgver.tar.gz")
sha512sums=('693d18f0f3baaa8bf122f0166a9041cfe816772930dcfb73cfc1e16b0cedef2cfd19623d91a6d9e745bfcc1d2cbfb001a031d8c0d6fe1dd46319c3469ba60812')

build() {
cd "$srcdir/tls_parser-$pkgver"
cd "$srcdir/$_pkgname-$pkgver"

python setup.py build
python -m build --wheel --outdir="$startdir/dist"
}

package_python-tls-parser() {
cd "tls_parser-$pkgver"

python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
--skip-build
cd "$_pkgname-$pkgver"
pip install \
--verbose \
--disable-pip-version-check \
--no-warn-script-location \
--ignore-installed \
--no-compile \
--no-deps \
--root="$pkgdir" \
--prefix=/usr \
--no-index \
--find-links="file://$startdir/dist" \
"$_pkgname"
}

0 comments on commit 36c0a3e

Please sign in to comment.