Advertisement
zeppelinlg

eclipse-eclipsecolortheme 0.13.0 - PKGBUILD

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