diff options
author | Ng Oon-Ee | 2015-06-09 12:21:43 +0800 |
---|---|---|
committer | Ng Oon-Ee | 2015-06-09 12:21:43 +0800 |
commit | 719f898326e7bc5ee27355da0937739c7b5dd9e7 (patch) | |
tree | e520f9f37e0c934624d966a4f5f70698fab91be0 | |
download | aur-719f898326e7bc5ee27355da0937739c7b5dd9e7.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 66 | ||||
-rw-r--r-- | heimdall.desktop | 10 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9f1e58fd0a8f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = heimdall + pkgdesc = Heimdall is a cross-platform open-source utility to flash firmware (aka ROMs) onto Samsung Galaxy S devices. + pkgver = 1.4.1 + pkgrel = 1 + url = http://www.glassechidna.com.au/products/heimdall/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = gcc + depends = libusb + depends = qt4 + optdepends = android-udev: Udev rules to connect Android devices to your linux box + source = heimdall-1.4.1.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v1.4.1.tar.gz + source = heimdall.desktop + md5sums = 22c911e9042f5ed8fd90cbeeb9589015 + md5sums = 6c4de9e74c0d9e7ab4d50af21303b78a + +pkgname = heimdall + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c3a1ba7a6f66 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Contributor: Todd Musall +# Contributor: dront78 (Ivan) +# Contributor: Victor Noel +# Maintainer: ngoonee +pkgname=('heimdall') +pkgver=1.4.1 +pkgrel=1 +pkgdesc="Heimdall is 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' 'qt4') +optdepends=('android-udev: Udev rules to connect Android devices to your linux box') +makedepends=('gcc') +source=("heimdall-${pkgver}.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz" + 'heimdall.desktop') + +build() { + cd ${srcdir}/Heimdall-${pkgver} + + # Build libpit which is needed for compiling heimdall + cd libpit/ + ./configure --prefix=/usr + # Default makefile removes libpit.1.4.a which is needed by frontend + #sed -i '/rm -f libpit-1.4.a/d' Makefile + make + + # Build heimdall command line tool + cd ../heimdall/ + + ./configure --prefix=/usr + make + + # Build heimdall GUI front end + cd ../heimdall-frontend/ + + env OUTPUTDIR="/usr/bin" qmake-qt4 heimdall-frontend.pro + make +} + +package() { + cd ${srcdir}/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 + install -m644 -D "${srcdir}/heimdall.desktop" "${pkgdir}/usr/share/applications/heimdall.desktop" +} +md5sums=('22c911e9042f5ed8fd90cbeeb9589015' + '6c4de9e74c0d9e7ab4d50af21303b78a') 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 |