1 # Maintainer: Jesús Jerez <jerezmoreno at gmail dot com>
2 pkgname=eclipse-yiiclipse
3 pkgver=1.1.0.201111132221
5 pkgdesc="Eclipse PDT extension for Yii framework"
7 url="http://yiiclipse.maziarz.org/"
9 depends=('eclipse-pdt')
10 source=("http://yiiclipse.maziarz.org/updatesite/STABLE/plugins/org.maziarz.yiiclipse_${pkgver}.jar"
11 "http://yiiclipse.maziarz.org/updatesite/STABLE/features/org.maziarz.yiiclipse.feature_${pkgver}.jar")
12 md5sums=('b214e4bbf68500faa9618a1e9409091c'
13 'dc89bbff1f46d5c91e9b321a703566c5')
16 _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
19 mkdir {plugins,features}
20 cp ../org.maziarz.yiiclipse_${pkgver}.jar plugins/
21 cp ../org.maziarz.yiiclipse.feature_${pkgver}.jar features/
24 find features -type f | while read _feature ; do
25 if [[ ${_feature} =~ (.*\.jar$) ]] ; then
26 install -dm755 ${_dest}/${_feature%*.jar}
27 cd ${_dest}/${_feature/.jar}
28 jar xf ${srcdir}/${_feature} || return 1
30 install -Dm644 ${_feature} ${_dest}/${_feature}
35 find plugins -type f | while read _plugin ; do
36 install -Dm644 ${_plugin} ${_dest}/${_plugin}