Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Shanto <shanto@hotmail.com>
- # Contributor: Shanto <shanto@hotmail.com>
- pkgname=eclipse-aptana
- pkgver=3.3.1
- _pkgdate=201212171835
- _pkgtag=7G7F07UIRYTaR0Q6Sz-8biKsz0da
- pkgrel=1
- pkgdesc="Aptana Studio plugin for Eclipse (HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django)"
- url="http://www.aptana.com/products/studio3"
- arch=('any')
- license=('EPL')
- depends=('eclipse' 'libjpeg6-turbo' 'libpng12')
- makedepends=('unzip')
- conflicts=('eclipse-pydev')
- provides=('eclipse-pydev')
- # find current download link at:
- # http://download.aptana.com/studio3/plugin/update/index.html
- source=(http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/update/studio3/${pkgver}.${_pkgdate}/com.aptana.feature.studio-${pkgver}.${_pkgdate}-${_pkgtag}.zip)
- md5sums=('6f4724b3d50bbda8a60a8c0e35b1f6d9')
- options=('!strip')
- build() {
- _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
- cd ${srcdir}
- # Cleanup
- find plugins/*.{win32,macosx}.* -delete
- # Features
- find features -type f | while read _feature ; do
- if [[ ${_feature} =~ (.*\.jar$) ]] ; then
- install -dm755 ${_dest}/${_feature%*.jar}
- cd ${_dest}/${_feature/.jar}
- jar xf ${srcdir}/${_feature}
- else
- install -Dm644 ${srcdir}/${_feature} ${_dest}/${_feature}
- fi
- done
- # Plugins
- #_extract_jar={com.aptana.{git,*libraries,parsing,terminal,swt.webkit}*,{com,org}.python.pydev*}
- _keep_as_jar="(.+/com\.aptana\.scripting_.+)"
- find plugins -type f | while read _plugin ; do
- if [[ ${_plugin} =~ (.*\.jar$) && ! ${_plugin} =~ $_keep_as_jar ]] ; then
- install -dm755 ${_dest}/${_plugin%*.jar}
- cd ${_dest}/${_plugin/.jar}
- jar xf ${srcdir}/${_plugin}
- else
- install -Dm644 ${srcdir}/${_plugin} ${_dest}/${_plugin}
- fi
- done
- find $_dest/plugins -name 'redtty' -exec chmod 0755 {} \;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement