Advertisement
Guest User

eclipse-aptana

a guest
Jul 26th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.78 KB | None | 0 0
  1. # Maintainer: Shanto <shanto@hotmail.com>
  2. # Contributor: Shanto <shanto@hotmail.com>
  3.  
  4. pkgname=eclipse-aptana
  5. pkgver=3.2.0
  6. _pkgdate=201206251645
  7. _pkgtag=7E7H-7ICHHFcJULNAORRIBXn1X6f
  8. pkgrel=1
  9. pkgdesc="Aptana Studio plugin for Eclipse (HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django)"
  10. url="http://www.aptana.com/products/studio3"
  11. arch=('any')
  12. license=('EPL')
  13. depends=('eclipse' 'libjpeg6-turbo' 'libpng12')
  14. makedepends=('unzip')
  15. conflicts=('eclipse-pydev')
  16. provides=('eclipse-pydev')
  17. # find current download link at:
  18. # http://download.aptana.com/studio3/plugin/update/index.html
  19. source=(http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/update/studio3/${pkgver}.${_pkgdate}/com.aptana.feature.studio-${pkgver}.${_pkgdate}-${_pkgtag}.zip)
  20. md5sums=('a4b6e928b1c523de07c8e62c433cb6ca')
  21. options=('!strip')
  22.  
  23. build() {
  24.     _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
  25.  
  26.     cd ${srcdir}
  27.  
  28.     # Cleanup
  29.     find plugins/*.{win32,macosx}.* -delete
  30.  
  31.     # Features
  32.     find features -type f | while read _feature ; do
  33.     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
  34.         install -dm755 ${_dest}/${_feature%*.jar}
  35.         cd ${_dest}/${_feature/.jar}
  36.         jar xf ${srcdir}/${_feature}
  37.     else
  38.         install -Dm644 ${srcdir}/${_feature} ${_dest}/${_feature}
  39.     fi
  40.     done
  41.  
  42.     # Plugins
  43.     #_extract_jar={com.aptana.{git,*libraries,parsing,terminal,swt.webkit}*,{com,org}.python.pydev*}
  44.     _keep_as_jar="(.+/com\.aptana\.scripting_.+)"
  45.     find plugins -type f | while read _plugin ; do
  46.     if [[ ${_plugin} =~ (.*\.jar$) && ! ${_plugin} =~ $_keep_as_jar ]] ; then
  47.         install -dm755 ${_dest}/${_plugin%*.jar}
  48.         cd ${_dest}/${_plugin/.jar}
  49.         jar xf ${srcdir}/${_plugin}
  50.     else
  51.         install -Dm644 ${srcdir}/${_plugin} ${_dest}/${_plugin}
  52.     fi
  53.     done
  54.  
  55.     find $_dest/plugins -name 'redtty' -exec chmod 0755 {} \;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement