summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf74822e56b31f7487df49d9c71feba3035b0908 (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
45
46
47
48
49
50
51
52
# Maintainer: brent s. <bts[at]square-r00t[dot]net>
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
pkgname=johnny-git
_pkgname=johnny
pkgver=r527.c862833
pkgrel=5
pkgdesc="A GUI for john (the ripper, a password audit tool)"
arch=('i686' 'x86_64' 'armv7h')
url="http://openwall.info/wiki/john/johnny"
license=('custom')
install=
changelog=
source=("git+https://github.com/shinnok/johnny.git"
	"${_pkgname}.desktop"
	"${_pkgname}.desktop.sig")
noextract=()
sha512sums=('SKIP'
	    '83e05a73feaf6c704f7e2e3ca10ef12e1f8e2441614b6ff15397ba1282eea2d095fac2b22a3b6252188badeab1364b9fc8a1b6ad55215a02894c048bc43fae3b'
	    'SKIP')
depends=('john' 'qt5-base')
makedepends=('john' 'qt5-base')
provides=('johnny')
conflicts=('johnny')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  (
     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  #( set -o pipefail
  #  git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  #  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  #)
  )
}

build() {
	cd "${srcdir}/${_pkgname}"
	/usr/bin/qmake-qt5
	make
}

package() {
	install -D -m755 "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
	install -D -m644 "${srcdir}/${_pkgname}/README" "${pkgdir}/usr/share/doc/${_pkgname}/README"
	install -D -m644 "${srcdir}/${_pkgname}/README" "${pkgdir}/usr/share/doc/${_pkgname}/CHANGELOG"
	install -D -m644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
	install -D -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
	install -D -m644 "${srcdir}/${_pkgname}/resources/icons/${_pkgname}_128.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
}