Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 22nd, 2011  |  syntax: None  |  size: 1.40 KB  |  views: 127  |  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. pkgname=('heimdall')
  2. pkgver=1.2.0
  3. pkgrel=1
  4. pkgdesc="Heimdall is a cross-platform open-source utility to flash firmware (aka ROMs) onto Samsung Galaxy S devices."
  5. arch=('i686' 'x86_64')
  6. [ "$CARCH" = "i686" ] && _ARCH=i386
  7. [ "$CARCH" = "x86_64" ] && _ARCH=amd64
  8. url="http://www.glassechidna.com.au/products/heimdall/"
  9. license=('MIT')
  10. depends=('libusb' 'qt')
  11. optdepends=('udev-android-rules: Udev rules to connect Android devices to you linux box')
  12. makedepends=('gcc')
  13. _frontendver=1.1.1
  14. source=("https://cloud.github.com/downloads/Benjamin-Dobell/Heimdall/${pkgname}_${pkgver}_${_ARCH}.deb"
  15.         "https://cloud.github.com/downloads/Benjamin-Dobell/Heimdall/${pkgname}-frontend_${_frontendver}-1_${_ARCH}.deb"
  16.         heimdall.desktop)
  17. [ "${CARCH}" = "i686" ] && _MD5SUM='09ef062d5c6565bc7160b87a4c56d7ab 95ba8b61cd8a186c4178e986686618a8'
  18. [ "${CARCH}" = "x86_64" ] && _MD5SUM='67ff442c3a3f1a3ed4b498aba0494bdb 8e6738d272491f71433c5a39a061c56c'
  19. md5sums=(${_MD5SUM} '08358cc7a73118d12238d4a8e8ae00c7')
  20.  
  21. build() {
  22.    cd ${srcdir}
  23.    bsdtar -xf "${pkgname}_${pkgver}_${_ARCH}.deb" data.tar.gz && mv data.tar.gz commandline.tar.gz
  24.    bsdtar -xf "${pkgname}-frontend_${_frontendver}-1_${_ARCH}.deb" && mv data.tar.gz frontend.tar.gz
  25. }
  26.  
  27. package() {
  28.    cd $pkgdir
  29.    bsdtar -xf ${srcdir}/commandline.tar.gz
  30.    bsdtar -xf ${srcdir}/frontend.tar.gz
  31.  
  32.    install -Dm644 -D ${srcdir}/heimdall.desktop usr/share/applications/heimdall.desktop
  33. }
clone this paste RAW Paste Data