summaryrefslogtreecommitdiffstats
path: root/testing/scapy/APKBUILD
blob: 676ba8acf5a2d3697435f8d171995f4f1ef22ebe (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
34
35
36
37
38
39
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=scapy
pkgver='2.2.0'
pkgrel=0
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL3+"
depends="python"
depends_dev=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="http://www.secdev.org/projects/scapy/files/scapy-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="406990bd8da1f4958b354b4b6fc4b3eb  scapy-2.2.0.tar.gz"
sha256sums="c5363b224df0efbd78d7dc4d8a518e5518b2e7affc2e5f1fcecd4efa3ab815af  scapy-2.2.0.tar.gz"
sha512sums="da05deb5dd3bfbd0222659a98e5f01c891e948b9104965e14ca975022b180cd7699ec852357baf229c73321dbe73d9a48c2a14008b7d7a3f0e151914536f7d3a  scapy-2.2.0.tar.gz"