blob: ddb6e2e961a03bed8ba27b42d9c3e7e10f91cf3f (
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
|
# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com>
pkgname=python-pypcap
pkgver=1.2.3
pkgrel=4
pkgdesc="Python libpcap module"
arch=('x86_64')
url="https://github.com/pynetwork/pypcap"
license=('custom')
depends=('python' 'libpcap')
makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel' 'cython')
source=("https://github.com/pynetwork/pypcap/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('f707c8e116a5e7d70308f41fd27a1dd7b4675bb59827fe901c5a26a508d880a4')
build() {
cd "$srcdir/pypcap-$pkgver"
cython pcap.pyx
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/pypcap-$pkgver"
python -m installer \
--destdir="$pkgdir" \
--prefix=/usr \
--compile-bytecode=1 \
dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: set ts=4 sw=4 et :
|