summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 8247c25e3bba763e3917884e8501b35e53a38a33 (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
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): Daniel Micay <danielmicay@gmail.com>
# Contributor (AUR): Todd Musall
# Contributor (AUR): dront78 (Ivan)
# Contributor (AUR): Victor Noel
# Contributor (AUR): ngoonee

# # I maintain this because:
# I use it and it is not in an official repo

pkgname=heimdall
pkgver=1.4.2
pkgrel=1
pkgdesc='Tool suite used to flash firmware onto Samsung mobile devices'
arch=('x86_64')
url="http://www.glassechidna.com.au/products/$pkgname/"
license=('MIT')
depends=('qt5-base')
makedepends=('cmake')
optdepends=('android-udev: Udev rules to connect Android devices to your linux box')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz"
        "$pkgname.desktop")
sha256sums=('589bef88f2597c8a84fe6fafbe928ddc9687438b5b54edd917d7df48c7e3eff8'
            '439cea1a8976b9b589ffe4030a084243bcc5e937dcb9c571cdb94d3ff08b4fb4')

build() {
  cd Heimdall-$pkgver

  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  install -m644 -D $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"

  cd Heimdall-$pkgver

  # Install license file
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  # Install heimdall command line tool
  install -d "$pkgdir"/usr/bin
  install -Dm755 bin/* "$pkgdir"/usr/bin/
  install -Dm644 $pkgname/60-$pkgname.rules "$pkgdir"/usr/lib/udev/rules.d/60-$pkgname.rules
}