2020-01-06 09:24:14 +00:00
|
|
|
# Contributor: Oliver Smith <ollieparanoid@postmarketos.org>
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=heimdall
|
2017-06-08 18:37:08 +00:00
|
|
|
pkgver=1.4.2
|
2020-01-06 09:24:14 +00:00
|
|
|
pkgrel=4
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Flasher for Samsung Galaxy S devices"
|
2019-01-10 21:30:24 +00:00
|
|
|
url="https://gitlab.com/BenjaminDobell/Heimdall"
|
2017-05-26 20:26:25 +00:00
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
2017-06-08 18:37:08 +00:00
|
|
|
makedepends="libusb-dev cmake"
|
2019-01-10 21:30:24 +00:00
|
|
|
source="
|
2020-01-06 09:24:14 +00:00
|
|
|
https://gitlab.com/BenjaminDobell/Heimdall/-/archive/v$pkgver/Heimdall-v$pkgver.tar.gz
|
2019-01-10 21:30:24 +00:00
|
|
|
heimdall_flash_kernel.sh
|
|
|
|
heimdall_wait_for_device.sh
|
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
options="!check"
|
2020-01-06 09:24:14 +00:00
|
|
|
builddir="$srcdir/Heimdall-v$pkgver"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
|
|
|
build() {
|
2020-01-06 09:24:14 +00:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DDISABLE_FRONTEND=ON
|
2017-06-08 18:37:08 +00:00
|
|
|
make
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-01-10 21:30:24 +00:00
|
|
|
for i in bin/heimdall "$srcdir"/heimdall_flash_kernel.sh "$srcdir"/heimdall_wait_for_device.sh; do
|
2017-06-08 18:37:08 +00:00
|
|
|
install -Dm755 "$i" "$pkgdir"/usr/bin/"$(basename "$i")"
|
2017-05-26 20:26:25 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-01-10 21:30:24 +00:00
|
|
|
sha512sums="ed9c5cc7e9377647474ba1af8b7a06d7bbc2371d379d83c2e5cd8463637c52c08c269ab18b6a0a0bec91be8101978748b2d10dd78629ba567bd2c2e452633f63 Heimdall-v1.4.2.tar.gz
|
2017-07-14 20:35:59 +00:00
|
|
|
f2cae8ee8bd598ca7e2ca8ccb01318dc3b7b049f6177e41a1a3b82906de86cae4f789438d9ed319ec06fd957814d59ec8b5a0f0096630cad0f2ef89825d4fd1a heimdall_flash_kernel.sh
|
2017-05-26 20:26:25 +00:00
|
|
|
45e742bb3a8c8d0bc6806a4e9f860b04f255cad72a8602c04759178284c66e0a90d3ea22249b5fa69de1dd1d6ecd6221adaa63d611aa20d2a54aa20868e86a9f heimdall_wait_for_device.sh"
|