[arch-commits] Commit in (5 files)
Daniel Micay
thestinger at archlinux.org
Tue Jul 21 00:51:45 UTC 2015
Date: Tuesday, July 21, 2015 @ 02:51:45
Author: thestinger
Revision: 137187
add heimdall package
Added:
heimdall/
heimdall/repos/
heimdall/trunk/
heimdall/trunk/PKGBUILD
heimdall/trunk/heimdall.desktop
------------------+
PKGBUILD | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
heimdall.desktop | 9 +++++++
2 files changed, 69 insertions(+)
Added: heimdall/trunk/PKGBUILD
===================================================================
--- heimdall/trunk/PKGBUILD (rev 0)
+++ heimdall/trunk/PKGBUILD 2015-07-21 00:51:45 UTC (rev 137187)
@@ -0,0 +1,60 @@
+# Maintainer: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Todd Musall
+# Contributor: dront78 (Ivan)
+# Contributor: Victor Noel
+# Contributor: ngoonee
+pkgname=heimdall
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Tool suite used to flash firmware (aka ROMs) onto Samsung mobile devices'
+arch=('i686' 'x86_64')
+url='http://www.glassechidna.com.au/products/heimdall/'
+license=('MIT')
+depends=('libusb' 'qt4')
+optdepends=('android-udev: Udev rules to connect Android devices to your linux box')
+source=("heimdall-${pkgver}.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz"
+ 'heimdall.desktop')
+md5sums=('22c911e9042f5ed8fd90cbeeb9589015'
+ '4ba737aed98dd28c9bceb0723dbd7267')
+
+build() {
+ cd Heimdall-$pkgver
+
+ cd libpit/
+ ./configure --prefix=/usr
+ make
+
+ cd ../heimdall/
+ ./configure --prefix=/usr
+ make
+
+ cd ../heimdall-frontend/
+ env OUTPUTDIR="/usr/bin" qmake-qt4 heimdall-frontend.pro
+ make
+}
+
+package() {
+ install -m644 -D heimdall.desktop "$pkgdir/usr/share/applications/heimdall.desktop"
+
+ cd Heimdall-$pkgver
+
+ # Install license file
+ install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Install heimdall command line tool
+ cd heimdall/
+
+ # Prevent make install from trying to reload udev
+ # We'll do this the Arch way at package install time
+ mv Makefile Makefile.orig
+ sed -e 's/sudo service udev restart/echo sudo service udev restart/' <Makefile.orig >Makefile
+
+ make DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir/lib/"
+
+ # Install heimdall GUI front end
+ cd ../heimdall-frontend
+ # hack to place heimdall-frontend in /usr/bin
+ sed -i 's|local\/||g' Makefile
+ make INSTALL_ROOT="$pkgdir/" install
+}
Added: heimdall/trunk/heimdall.desktop
===================================================================
--- heimdall/trunk/heimdall.desktop (rev 0)
+++ heimdall/trunk/heimdall.desktop 2015-07-21 00:51:45 UTC (rev 137187)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=Heimdall
+Type=Application
+Comment=Firmware flasher for Samsung mobile devices
+Terminal=false
+Exec=heimdall-frontend
+Icon=phone
+Categories=Development;
More information about the arch-commits
mailing list