forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hashcat-gui-0.5.1.ebuild
44 lines (33 loc) · 1.09 KB
/
hashcat-gui-0.5.1.ebuild
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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit qt4-r2
DESCRIPTION="A gui for the *hashcat* suite of tools"
HOMEPAGE="https://github.com/scandium/hashcat-gui"
SRC_URI="mirror://github/scandium/hashcat-gui/zipball/b6b01be723742ad89ba31fdb2c30b35306318f8b -> ${P}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cuda opencl"
RDEPEND="app-crypt/hashcat-bin
cuda? ( app-crypt/oclhashcat-plus-bin
app-crypt/oclhashcat-lite-bin )
opencl? ( app-crypt/oclhashcat-plus-bin
app-crypt/oclhashcat-lite-bin )
dev-qt/qtgui:4
dev-qt/qtcore:4"
DEPEND="dev-qt/qtgui:4
dev-qt/qtcore:4
app-arch/unzip"
S="${WORKDIR}"/scandium-hashcat-gui-b6b01be/src
src_prepare() {
sed -i 's#./hashcat#/opt/hashcat-bin#g' mainwindow.cpp || die
sed -i 's#./oclHashcat-plus#/opt/oclhashcat-plus-bin#g' mainwindow.cpp || die
sed -i 's#./oclHashcat-lite#/opt/oclhashcat-lite-bin#g' mainwindow.cpp || die
}
src_install() {
dobin hashcat-gui
cd "${WORKDIR}"/scandium-hashcat-gui-b6b01be || die
dodoc ChangeLog FAQ INSTALL README TODO
}