blob: 928040a88a3d73c88cade797e269afd785ae145d (
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
|
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgbase=pyshark
pkgname=('python-pyshark')
pkgver=0.6
pkgrel=2
pkgdesc='Python wrapper for tshark, allowing python packet parsing using wireshark dissectors'
url='https://github.com/KimiNewt/pyshark'
arch=('any')
license=('MIT')
makedepends=('wireshark-cli' 'python-py' 'python-lxml' 'python-setuptools' 'python-packaging')
source=("${pkgbase}-${pkgver}.tar.gz"::"https://github.com/KimiNewt/pyshark/archive/v${pkgver}.tar.gz")
sha512sums=('13b114876e7891b67259bd9bf03ce97746ba5dfbd5df288c66d3b1ec5326cdec6e8dfb0c2df2ad3238f3ce509d89661b20bb1355b076ae1599156eb6d02c8158')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}/src"
python setup.py build
}
package_python-pyshark() {
depends=('wireshark-cli' 'python-py' 'python-lxml' 'python-packaging' 'python-appdirs')
cd "${srcdir}/${pkgbase}-${pkgver}/src"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 ../README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
# vim: ts=2 sw=2 et:
|