Last active
August 29, 2015 14:17
-
-
Save hanetzer/ef1403ba01e7b6ef543a to your computer and use it in GitHub Desktop.
heimdall-git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/heimdall/source/BridgeManager.cpp 2015-03-15 18:28:01.469153580 -0500 | |
+++ b/heimdall/source/BridgeManager.cpp 2015-03-15 18:30:00.234516719 -0500 | |
@@ -231,7 +231,8 @@ | |
{ | |
Interface::Print("Claiming interface...\n"); | |
- int result = libusb_claim_interface(deviceHandle, interfaceIndex); | |
+ int result = libusb_detach_kernel_driver(deviceHandle, interfaceIndex); | |
+ result = libusb_claim_interface(deviceHandle, interfaceIndex); | |
#ifdef OS_LINUX | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Todd Musall | |
# Contributor: dront78 (Ivan) | |
# Contributor: Victor Noel | |
# Maintainer: Lari Tikkanen | |
pkgname=('heimdall-git') | |
_gitname="heimdall" | |
pkgver=8cb7f3d | |
pkgrel=1 | |
pkgdesc="A cross-platform open-source utility to flash firmware (aka ROMs) onto Samsung Galaxy S devices." | |
arch=('i686' 'x86_64') | |
url="http://www.glassechidna.com.au/products/heimdall/" | |
license=('MIT') | |
depends=('gcc-libs' 'libusb' 'qt5-base') | |
makedepends=('git') | |
optdepends=('android-udev: Udev rules to connect Android devices to you linux box') | |
conflicts=('heimdall') | |
provides=('heimdall') | |
source=("$_gitname::git://github.com/Benjamin-Dobell/Heimdall.git" | |
"heimdall.desktop" | |
"BridgeManager.patch") | |
md5sums=('SKIP' | |
'6c4de9e74c0d9e7ab4d50af21303b78a' | |
'8fce869eb9539b6b410b1a52370c3824') | |
pkgver() { | |
cd $_gitname | |
git describe --always | sed 's|-|.|g' | |
} | |
prepare() { | |
cd ${srcdir}/heimdall | |
patch -Np1 -i ${srcdir}/BridgeManager.patch | |
} | |
build() { | |
cd ${srcdir}/heimdall/ | |
if [ ! -d build ] ; then | |
mkdir build; | |
else | |
rm -rf build && mkdir build | |
fi | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make | |
} | |
package() { | |
cd ${srcdir}/$_gitname/build | |
install -m755 -D bin/heimdall "${pkgdir}/usr/bin/heimdall" | |
install -m755 bin/heimdall-frontend "${pkgdir}/usr/bin/heimdall-frontend" | |
install -m644 -D "${srcdir}/heimdall.desktop" "${pkgdir}/usr/share/applications/heimdall.desktop" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment