summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6180fb60b97b6716c098c22cdf3b78d906ca01b0 (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
# Maintainer: GI_Jack <GI_Jack@hackermail.com>

pkgname=dumpzilla-git
_pkgname=${pkgname%-git}
pkgver=r44.ec337da
pkgrel=1
pkgdesc="Extract All Forensic Interesting Information Of Firefox, Iceweasel And Seamonkey"
arch=('any')
url="http://www.dumpzilla.org/"
license=('GPL')
groups=()
depends=('python' 'python-lz4' 'python-magic')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
replaces=()
backup=()
options=()
install=
source=("${_pkgname}::git+https://github.com/Busindre/dumpzilla.git")
noextract=()
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgname}"
  # Git, no tags available
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/${_pkgname}"
  # copy main program
  mkdir	-p "${pkgdir}/usr/share/dumpzilla"
  install -Dm755 dumpzilla.py "${pkgdir}/usr/share/dumpzilla/dumpzilla.py"
  cp -r ES_templates_dumpzilla "${pkgdir}/usr/share/dumpzilla/"
  install -d "${pkgdir}/usr/bin/"
  echo '/usr/share/dumpzilla/dumpzilla.py ${@}' > "${pkgdir}/usr/bin/dumpzilla"
  chmod 755 "${pkgdir}/usr/bin/dumpzilla"

  # copy autocomplete
  install -Dm644 dumpzilla "${pkgdir}/usr/share/bash-completion/completions/dumpzilla"
}