diff options
author | kyechou | 2024-01-09 14:55:07 -0600 |
---|---|---|
committer | kyechou | 2024-01-09 14:55:07 -0600 |
commit | 0ce1f90aff6de2a73108e8bb2476353415dfded3 (patch) | |
tree | 3ef5268f15f7a89daebe9cb0afe9719770e05268 /PKGBUILD | |
parent | a88199a9d7f685b35124b0d9e9fbd6ca77b70678 (diff) | |
download | aur-python-pypacker.tar.gz |
Modernize the build (PEP 517)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2,28 +2,28 @@ pkgname=python-pypacker pkgver=5.4 -pkgrel=1 +pkgrel=2 pkgdesc="The fastest and simplest packet manipulation lib for Python" arch=('x86_64') url="https://gitlab.com/mike01/pypacker" license=('GPL') depends=('python' 'python-netifaces') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-wheel') source=("https://gitlab.com/mike01/pypacker/-/archive/v$pkgver/pypacker-v$pkgver.tar.gz") sha256sums=('aee51eb3c506fee7d7a9055c7f43021666cc272d57c989c3482bc906bf4eb68d') build() { cd "$srcdir/pypacker-v$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$srcdir/pypacker-v$pkgver" - python setup.py install \ + python -m installer \ + --destdir="$pkgdir" \ --prefix=/usr \ - --root="$pkgdir" \ - --optimize=1 \ - --skip-build + --compile-bytecode=1 \ + dist/*.whl } # vim: set ts=4 sw=4 et : |