diff options
author | Lartza | 2015-06-12 04:28:44 +0300 |
---|---|---|
committer | Lartza | 2015-06-12 04:28:44 +0300 |
commit | 68288201a490419a8bc2b01441d29052a09fd131 (patch) | |
tree | f4c91cc375385f954286b493abb047d409fe9544 | |
download | aur-68288201a490419a8bc2b01441d29052a09fd131.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | BridgeManager.patch | 12 | ||||
-rw-r--r-- | PKGBUILD | 61 | ||||
-rw-r--r-- | heimdall.desktop | 10 |
4 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2992ea5a9860 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = heimdall-git + pkgdesc = A cross-platform open-source utility to flash firmware (aka ROMs) onto Samsung Galaxy S devices. + pkgver = 1.4.1.r21.gd0526a3 + pkgrel = 1 + url = http://www.glassechidna.com.au/products/heimdall/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = cmake + makedepends = git + depends = libusb + depends = qt5-base + optdepends = android-udev: Udev rules to connect Android devices to you linux box + provides = heimdall + conflicts = heimdall + source = heimdall::git://github.com/Benjamin-Dobell/Heimdall.git + source = heimdall.desktop + source = BridgeManager.patch + md5sums = SKIP + md5sums = 6c4de9e74c0d9e7ab4d50af21303b78a + md5sums = 8fce869eb9539b6b410b1a52370c3824 + +pkgname = heimdall-git + diff --git a/BridgeManager.patch b/BridgeManager.patch new file mode 100644 index 000000000000..8b7cd9131d32 --- /dev/null +++ b/BridgeManager.patch @@ -0,0 +1,12 @@ +--- 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 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ccc5f78fc41 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Contributor: Todd Musall +# Contributor: dront78 (Ivan) +# Contributor: Victor Noel +# Maintainer: Lari Tikkanen + +pkgname=('heimdall-git') +_gitname="heimdall" +pkgver=1.4.1.r21.gd0526a3 +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=('libusb' 'qt5-base') +makedepends=('cmake' '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 --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd ${srcdir}/heimdall/ + patch -Np1 -i ${srcdir}/BridgeManager.patch +} + +build() { + cd ${srcdir}/heimdall/ + + if [ -d build ] ; then + rm -rf build + fi + + mkdir build + cd build + + cmake -DCMAKE_BUILD_TYPE=Release .. + make +} + +package() { + cd ${srcdir}/$_gitname + + install -m644 -D LICENSE "${pkgdir}/usr/share/licenses/$_gitname/LICENSE" + + cd 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" +} diff --git a/heimdall.desktop b/heimdall.desktop new file mode 100644 index 000000000000..2501e1e2c74d --- /dev/null +++ b/heimdall.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=Heimdall +Type=Application +Comment=Samsung Galaxy Firmware Flasher +Terminal=false +Exec=heimdall-frontend +Icon=heimdall +Categories=System; +GenericName=Firmware Flasher |