aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flunym0us/APKBUILD
blob: 41a04297c5439e3da48bb9bd65ccf93f73b82cd3 (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
42
43
44
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=flunym0us
pkgver=2.1
pkgrel=0
pkgdesc="A vulnerability scanner for wordpress and moodle"
url="http://code.google.com/p/flunym0us/"
arch="noarch"
license="GPL3"
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="http://flunym0us.googlecode.com/files/$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
	for _file in moodle-plugins.lst wp-plugins.lst; do
		install -Dm644 "$srcdir"/$pkgname-$pkgver/$pkgname/$_file \
			"$pkgdir"/usr/share/$pkgname/$_file || return 1
	done
}

md5sums="5f437c2797b39b03b6f80e8c1ef66f85  flunym0us-2.1.tar.gz"
sha256sums="97dc5896ca61b0a1e16933cb5c6369efe0b8bc83d2538a951bd03d5ffdd0675a  flunym0us-2.1.tar.gz"
sha512sums="3ff2e0d3727604af8602b1fc2257c6cba90a96d19aff3b30d6793692086b533a234118698db24c5efcef7286196c29c21e8e54a47236e7a25c278cac301bf611  flunym0us-2.1.tar.gz"