Advertisement
Guest User

Untitled

a guest
Mar 20th, 2011
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Maintainer: Forrest L <cybercyst at gmail com>
  2. # Maintainer: Michael P <ptchinster@archlinux.us>
  3. # Contributor: Marcin "eXine" M. <exine@jun.pl>
  4. # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
  5. # Maintainer: Ashok `ScriptDevil` Gautham <ScriptDevil@gmail.com>
  6. # Maintainer: Laszlo Papp <djszapi2 at gmail com>
  7. # Maintainer: Antonio Santos <asantos at gmail dot com>
  8.  
  9. pkgname=eclipse-android
  10. _pkgname=ADT
  11. pkgver=10.0.1
  12. pkgrel=1
  13. pkgdesc="Eclipse plugin for android"
  14. url="http://developer.android.com/sdk/eclipse-adt.html"
  15. license=('GPL')
  16. arch=('any')
  17. depends=('eclipse' 'android-sdk' 'eclipse-wtp-wst')
  18. makedepends=('unzip')
  19. source=(http://dl.google.com/android/${_pkgname}-${pkgver}.zip)
  20. md5sums=('e26a77db08377bdd2e62edeb9a3e3701')
  21.  
  22. build() {
  23. _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
  24.  
  25. cd ${srcdir}
  26.  
  27. # Features
  28. find features -type f | while read _feature ; do
  29. if [[ ${_feature} =~ (.*\.jar$) ]] ; then
  30. install -dm755 ${_dest}/${_feature%*.jar}
  31. cd ${_dest}/${_feature/.jar}
  32. jar xf ${srcdir}/${_feature} || return 1
  33. else
  34. install -Dm644 ${_feature} ${_dest}/${_feature}
  35. fi
  36. done
  37.  
  38. # Plugins
  39. find plugins -type f | while read _plugin ; do
  40. install -Dm644 ${_plugin} ${_dest}/${_plugin}
  41. done
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement