summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7218d7c4633a1991cacbfa0dd87f4342dc8fa71 (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
# Maintainer: Andrius Semionovas <aneworld at gmail dot com>

pkgname=leakcanary-shark-cli
pkgver=2.7
pkgrel=1
pkgdesc="The Shark Command Line Interface (CLI) enables you to analyze heaps directly from your computer"
arch=('any')
url="https://github.com/square/leakcanary"
license=('Apache')
depends=('java-runtime'
         'sh')
provides=('shark-cli')
source=("https://github.com/square/leakcanary/releases/download/v${pkgver}/shark-cli-${pkgver}.zip"
        'shark-cli'
        'LICENSE.txt')
sha256sums=('6a4198deec2369f6b7e03e4a0175eb1cdba74b02989159f652b729016e140468'
            '811a90b774b14569f1157dd4eedde52cf8ffd991318c43ed7b8ff7179999e2d6'
            '58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd')

package() {
  # Install jars
  install -d ${pkgdir}/usr/share/java/${pkgname}
  install -Dm644 ${srcdir}/shark-cli-${pkgver}/lib/* ${pkgdir}/usr/share/java/${pkgname}/

  # Install license
  install -Dm644 ${srcdir}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt

  # Install run script
  install -Dm755 ${srcdir}/shark-cli ${pkgdir}/usr/bin/shark-cli
}