summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9d74e330e598c579129717b78cd8ad315b4af1a (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
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Hoàng Đức Hiếu <hdh@lazny.tang.la>
# Contributor: Gilfran Ribeiro <contato [at] gilfran [dot] net>
# Contributor: William Díaz <wdiaz [at] archlinux [dot] us>

pkgname=cpyrit-opencl-git
pkgver=0.5.0.r43.gf0f1913
pkgrel=1
pkgdesc="The famous WPA precomputed cracker, OpenCL backend (Git version)"
url="https://github.com/JPaulMora/Pyrit"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('pyrit-git' 'opencl-icd-loader')
makedepends=('opencl-headers' 'git')
provides=('cpyrit-opencl' 'cpyrit-opencl-svn')
conflicts=('cpyrit-opencl' 'cpyrit-opencl-svn')
replaces=('cpyrit-opencl-svn')

source=("git+https://github.com/JPaulMora/Pyrit")
md5sums=('SKIP')

function pkgver() {
	cd Pyrit

	git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
	cd Pyrit/modules/cpyrit_opencl

	python2 setup.py build
}

package() {
	cd Pyrit/modules/cpyrit_opencl

	python2 setup.py install --root="${pkgdir}" --optimize=1
}