updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / eclipse-yiiclipse / PKGBUILD
blobada5a7a936da8db1cb982c56f4f9e11ca9b75e80
1 # Maintainer: Jesús Jerez <jerezmoreno at gmail dot com>
2 pkgname=eclipse-yiiclipse
3 pkgver=1.1.0.201111132221
4 pkgrel=1
5 pkgdesc="Eclipse PDT extension for Yii framework"
6 arch=('any')
7 url="http://yiiclipse.maziarz.org/"
8 license=('EPL')
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')
15 build() {
16   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
18   cd ${srcdir}
19   mkdir {plugins,features}
20   cp ../org.maziarz.yiiclipse_${pkgver}.jar plugins/
21   cp ../org.maziarz.yiiclipse.feature_${pkgver}.jar features/
23   # 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
29     else
30       install -Dm644 ${_feature} ${_dest}/${_feature}
31     fi
32   done
34   # Plugins
35   find plugins -type f | while read _plugin ; do
36     install -Dm644 ${_plugin} ${_dest}/${_plugin}
37   done