aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-impacket/APKBUILD
blob: eb23767ef20e05ca20f2d8172ecf1afc42a32b6b (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
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-impacket
_pkgname=impacket
pkgver=0.9.13
pkgrel=0
pkgdesc="A collection of Python classes providing access to network packets"
url="http://code.google.com/p/impacket/"
arch="noarch"
license="ASL 2.0"
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$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="db305aff0dae6a3c09f873a2da248387  impacket-0.9.13.tar.gz"
sha256sums="56bb18010f13a33947c24d31f51e16d8c688cf9c753c1d52f79a9ba64e5c0dca  impacket-0.9.13.tar.gz"
sha512sums="9c9ba1ea12776b023a4fec4b0f6f60cfed33d337da948111951f452548fd213a5f48698126a9c8735706ae5d05111f0de3f20b17c221567ca98d2c84bb22ccef  impacket-0.9.13.tar.gz"