Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 22nd, 2013  |  syntax: None  |  size: 2.22 KB  |  views: 129  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Todd Musall
  2. # Contributor: dront78 (Ivan)
  3. # Maintainer: Victor Noel
  4. pkgname=('heimdall')
  5. pkgver=1.4.0
  6. pkgrel=1
  7. pkgdesc="Heimdall is a cross-platform open-source utility to flash firmware (aka ROMs) onto Samsung Galaxy S devices."
  8. arch=('i686' 'x86_64')
  9. url="http://www.glassechidna.com.au/products/heimdall/"
  10. license=('MIT')
  11. depends=('libusb' 'qt4')
  12. optdepends=('android-udev: Udev rules to connect Android devices to your linux box')
  13. makedepends=('gcc')
  14. #source=("heimdall-${pkgver}.tar.gz::http://github.com/Benjamin-Dobell/Heimdall/tarball/v${pkgver}"
  15. #source=("heimdall-${pkgver}.tar.gz::http://github.com/Benjamin-Dobell/Heimdall/tarball/e0e84b2f7a28bd188f104f51a845dc4ed8a9b7ea"
  16. source=("heimdall-${pkgver}.tar.gz::http://github.com/Benjamin-Dobell/Heimdall/tarball/910ae1d1fed7b608239b344b6d92c9165a0b8d52"
  17.         'heimdall.desktop')
  18.  
  19. build() {
  20.   cd ${srcdir}/Benjamin-Dobell-Heimdall-*
  21.  
  22.   # Build libpit which is needed for compiling heimdall
  23.   cd libpit/
  24.   ./configure --prefix=/usr
  25.   # Default makefile removes libpit.1.4.a which is needed by frontend
  26.   #sed -i '/rm -f libpit-1.4.a/d' Makefile
  27.   make
  28.  
  29.   # Build heimdall command line tool
  30.   cd ../heimdall/
  31.  
  32.   ./configure --prefix=/usr
  33.   make
  34.  
  35.   # Build heimdall GUI front end
  36.   cd ../heimdall-frontend/
  37.  
  38.   env OUTPUTDIR="/usr/bin" qmake-qt4 heimdall-frontend.pro
  39.   make
  40. }
  41.  
  42. package() {
  43.   cd ${srcdir}/Benjamin-Dobell-Heimdall-*
  44.  
  45.   # Install heimdall command line tool
  46.   cd heimdall/
  47.  
  48.   # Prevent make install from trying to reload udev
  49.   # We'll do this the Arch way at package install time
  50.   mv Makefile Makefile.orig
  51.   sed -e 's/sudo service udev restart/echo sudo service udev restart/' <Makefile.orig >Makefile
  52.  
  53.   make DESTDIR="${pkgdir}" install
  54.   rm -rf "${pkgdir}/lib/"
  55. #  install -m644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  56.  
  57.   # Install heimdall GUI front end
  58.   cd ../heimdall-frontend
  59.   # hack to place heimdall-frontend in /usr/bin
  60.   sed -i 's|local\/||g' Makefile
  61.   make INSTALL_ROOT="${pkgdir}/" install
  62.   install -m644 -D "${srcdir}/heimdall.desktop" "${pkgdir}/usr/share/applications/heimdall.desktop"
  63. }
  64. md5sums=('72c203839571d9c4e4adf798cc89fe4c'
  65.          '6c4de9e74c0d9e7ab4d50af21303b78a')
clone this paste RAW Paste Data