summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6f170962fdf844e861314cb7a29becc5b84a382 (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
# Maintainer :  Kr1ss  < $(tr +- .@ <<<kr1ss+x-yandex+com) >
# Contributor : Stephen Argent <steve [at] tuxcon [dot] com>


pkgname=maltego

pkgver=4.3.0
pkgrel=1

pkgdesc='Information gathering software by Paterva'
url="https://www.$pkgname.com"
arch=('any')
license=('custom')

depends=('java-runtime<=15' 'sh')

install="$pkgname.install"
source=("https://$pkgname-downloads.s3.us-east-2.amazonaws.com/linux/${pkgname^}.v$pkgver.deb"
        "LICENSE.pdf::https://www.$pkgname.com/pdf/legal/${pkgname^}%20Technologies_TermsandConditions_2020-11.pdf")
sha256sums=('069d336ac9e686cb16254a4d0f4e5bfe299afcc92ddce22aa51af0929c0049af'
            '5295b55e0da0a7aaa733032bf6d508dd149d66b379f71c4b15271729c3aa5500')

options=('!emptydirs')


package() {
  bsdtar -xf data.tar.gz -C "$pkgdir"
  sed -i 's|\(Exec=\)x-www-browser|\1xdg-open|g;s|^\(Version=\).*|\11.0|' \
         "$pkgdir/usr/share/applications/$pkgname.desktop"
  sed -i '1s|bash|sh|' "$pkgdir/usr/bin/$pkgname"
  # maltego_java_config is defined as action in maltego.desktop, don't need that twice
  rm "$pkgdir/usr/share/applications/${pkgname}_java_config.desktop"
  # remove Windows assets
  find "$pkgdir" -type f -regex '.*\.\(exe\|dll\)$' -delete
  chmod -R go-w "$pkgdir"
  install -Dm644 LICENSE.pdf -t"$pkgdir/usr/share/licenses/$pkgname/"
}


# vim: ts=2 sw=2 et ft=PKGBUILD: