Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=eclipse-eclipsecolortheme
- pkgver=0.12.0
- _pkgdate="201207240713"
- pkgrel=1
- pkgdesc="Eclipse Color Theme"
- url="http://www.eclipsecolorthemes.org"
- license=("EPL/1.0")
- arch=('any')
- depends=('eclipse')
- makedepends=('unzip')
- noextract=("com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar" "com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar")
- source=("http://eclipse-color-theme.github.com/update/features/com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar"
- "http://eclipse-color-theme.github.com/update/plugins/com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar")
- md5sums=('0568a9c19d3502162adcca7e53a7e1b8'
- '43c4b5824ddf04c25b7260b68891785a')
- package() {
- _dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
- mkdir {plugins,features}
- cp com.github.eclipsecolortheme_${pkgver}.${_pkgdate}.jar plugins/
- cp com.github.eclipsecolortheme.feature_${pkgver}.${_pkgdate}.jar features/
- # 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}" || return 1
- else
- install -Dm644 ${_feature} "${_dest}/${_feature}"
- fi
- done
- # Plugins
- find plugins -type f | while read _plugin ; do
- install -Dm644 ${_plugin} "${_dest}/${_plugin}"
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement