2017-05-26 20:26:25 +00:00
|
|
|
pkgname=heimdall
|
2017-06-08 18:37:08 +00:00
|
|
|
pkgver=1.4.2
|
|
|
|
pkgrel=1
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Flasher for Samsung Galaxy S devices"
|
|
|
|
url="https://github.com/Benjamin-Dobell/Heimdall"
|
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
|
|
|
depends=""
|
2017-06-08 18:37:08 +00:00
|
|
|
makedepends="libusb-dev cmake"
|
2017-05-26 20:26:25 +00:00
|
|
|
subpackages=""
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz
|
|
|
|
heimdall_flash_kernel.sh heimdall_wait_for_device.sh"
|
|
|
|
options="!check"
|
|
|
|
|
2017-06-08 18:37:08 +00:00
|
|
|
builddir="$srcdir"/Heimdall-$pkgver
|
2017-05-26 20:26:25 +00:00
|
|
|
build() {
|
2017-06-08 18:37:08 +00:00
|
|
|
cd "$builddir"
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DDISABLE_FRONTEND=ON .
|
|
|
|
make
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-06-08 18:37:08 +00:00
|
|
|
for i in "$builddir"/bin/heimdall heimdall_flash_kernel.sh heimdall_wait_for_device.sh; do
|
|
|
|
install -Dm755 "$i" "$pkgdir"/usr/bin/"$(basename "$i")"
|
2017-05-26 20:26:25 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2017-06-08 18:37:08 +00:00
|
|
|
sha512sums="c554662f9ccb763a8e9867a0c563618879d2533af985d44db3c237d3ee51add44c1681d13b1a83b72b30ba6e5b32d7c2f9c02b31114c67c5fbe01cbb010acfe7 heimdall-1.4.2.tar.gz
|
2017-05-26 20:26:25 +00:00
|
|
|
a75677d4c5559bf8233a48d1b38bf91e4125717a85e1ea6d283d2d1e052c2a96228818a71f8b90adbda049b6d5b5065f7265ffc2e05cafd2ce9717bfc8ac8716 heimdall_flash_kernel.sh
|
|
|
|
45e742bb3a8c8d0bc6806a4e9f860b04f255cad72a8602c04759178284c66e0a90d3ea22249b5fa69de1dd1d6ecd6221adaa63d611aa20d2a54aa20868e86a9f heimdall_wait_for_device.sh"
|