summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e957177451e5adff1430325a13a2cd05a600c8c (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
# Maintainer: Mitch Bigelow <ipha00@gmail.com>
# Contributor: delta48 <dark.magician.48[at]gmail[dot]com>

pkgname=pixiewps-git
_pkgname=pixiewps
pkgver=r23.d917f8f
pkgrel=1
pkgdesc="Offline bruteforce of the WPS pin exploiting the low or non-existing entropy of some APs"
arch=('i686' 'x86_64')
url="https://github.com/wiire/pixiewps"
license=('GPL')
depends=('openssl')
conflicts=('pixiewps')
provides=('pixiewps')
source=(git+https://github.com/wiire/pixiewps.git)
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"/src/
	# edit makefile
	sed -e 14d -e 16d -e '15 s/install/& -Dm 755 /'  -i Makefile
	make
}

package() {
	cd "$_pkgname"/src
	make PREFIX="$pkgdir/usr" install
}