# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
setvar pkgname = 'enumiax'
setvar pkgver = '0.4a'
setvar pkgrel = '0'
setvar pkgdesc = ""An Inter Asterisk Exchange version 2 protocol username brute-force enumerator.""
setvar url = ""http://sourceforge.net/projects/enumiax/""
setvar arch = ""all""
setvar license = ""GPL+2""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = "$depends_dev"
setvar install = """"
setvar subpackages = """"
setvar source = ""http://ufpr.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$pkgname-$pkgver""
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
	make
}

proc package {
	cd $_builddir
	mkdir -p  "$pkgdir"/usr/bin
	install enumiax "$pkgdir"/usr/bin || return 1
}

setvar md5sums = ""2a148fd2faa74d636ad891c7073fbd96  enumiax-0.4a.tar.gz""
setvar sha256sums = ""cf1b1db4d6d62c919afd1484e2476ef7c2ce05220555e829cc5d3821e47a2f41  enumiax-0.4a.tar.gz""
setvar sha512sums = ""671af2e274fa94b950d42db57880ec6d494510df8970edeeebe2e06a98aba4b6f3f10686624238f7cb19c590751a29d80993ffeee3c7091a30b4f2c337f8ce18  enumiax-0.4a.tar.gz""