blob: e785fdb5da2e655514043bcb37585a0ea319a086 (
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
53
54
55
56
57
58
59
60
|
# Contributor: Todd Musall
# Contributor: dront78 (Ivan)
# Contributor: Victor Noel
# Contributor: Lari Tikkanen
# Maintainer: Tim Schumacher
pkgname=heimdall-git
_pkgname=Heimdall
pkgver=1.4.2.r10.g3997d5c
pkgrel=1
pkgdesc="Tool suite used to flash firmware (ROMs) onto Samsung Galaxy S devices"
arch=("i686" "x86_64")
url="https://glassechidna.com.au/heimdall/"
license=("MIT")
depends=("qt5-base")
makedepends=("cmake" "git")
optdepends=("android-udev: Udev rules to connect Android devices to your linux box")
conflicts=("heimdall")
provides=("heimdall")
source=(
"$_pkgname::git+https://github.com/Benjamin-Dobell/Heimdall"
"heimdall.desktop"
"reset-device.patch"
)
sha256sums=('SKIP'
'439cea1a8976b9b589ffe4030a084243bcc5e937dcb9c571cdb94d3ff08b4fb4'
'42d3b86206d6ab80c79a16d7c1dcdcd478cb975d5155c9971744c2dd981c4577')
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$_pkgname"
patch -p1 -i "$srcdir/reset-device.patch"
}
build() {
cd "$srcdir/$_pkgname"
cmake . -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd "$srcdir/$_pkgname"
# Install desktop file
install -m644 -D "$srcdir/heimdall.desktop" "$pkgdir/usr/share/applications/heimdall.desktop"
# 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 heimdall/60-heimdall.rules "$pkgdir"/usr/lib/udev/rules.d/60-heimdall.rules
}
|