Advertisement
Guest User

eclipse-eclipsecolortheme

a guest
Jul 24th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. pkgname=eclipse-eclipsecolortheme
  2. pkgver=0.12.0
  3. _pkgdate="201207240713"
  4. pkgrel=1
  5. pkgdesc="Eclipse Color Theme"
  6. url="http://www.eclipsecolorthemes.org"
  7. license=("EPL/1.0")
  8. arch=('any')
  9. depends=('eclipse')
  10. makedepends=('unzip')
  11. noextract=("com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar" "com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar")
  12. source=("http://eclipse-color-theme.github.com/update/features/com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar"
  13.         "http://eclipse-color-theme.github.com/update/plugins/com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar")
  14. md5sums=('0568a9c19d3502162adcca7e53a7e1b8'
  15.          '43c4b5824ddf04c25b7260b68891785a')
  16.  
  17. package() {
  18.     _dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
  19.  
  20.     mkdir {plugins,features}
  21.     cp com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar plugins/
  22.     cp com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar features/
  23.  
  24.     # Features
  25.     find features -type f | while read _feature ; do
  26.         if [[ ${_feature} =~ (.*\.jar$) ]] ; then
  27.             install -dm755 "${_dest}"/${_feature%*.jar}
  28.             cd "${_dest}"/${_feature/.jar}
  29.             jar xf "${srcdir}/${_feature}" || return 1
  30.         else
  31.             install -Dm644 ${_feature} "${_dest}/${_feature}"
  32.         fi
  33.     done
  34.  
  35.     # Plugins
  36.     find plugins -type f | while read _plugin ; do
  37.         install -Dm644 ${_plugin} "${_dest}/${_plugin}"
  38.     done
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement