1 # Maintainer: Alistair Dutton <kelveden at gmail.com>
3 pkgname=eclipse-checkstyle
5 _pkgver_date=201109192037
7 pkgdesc="Checkstyle plugin for Eclipse"
9 url="http://eclipse-cs.sourceforge.net/"
13 source=(http://sourceforge.net/projects/eclipse-cs/files/Eclipse%20Checkstyle%20Plug-in/${pkgver}/net.sf.eclipsecs-updatesite-${pkgver}.${_pkgver_date}-bin.zip/download)
14 md5sums=('5f99b6dbc7920965dd608b0699695c5f')
17 _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
22 find features -type f \( -iname "*.jar" ! -iname "*migration*" \) | while read _feature ; do
23 if [[ ${_feature} =~ (.*\.jar$) ]] ; then
24 install -dm755 ${_dest}/${_feature%*.jar}
25 cd ${_dest}/${_feature/.jar}
26 jar xf ${srcdir}/${_feature} || return 1
28 install -Dm644 ${_feature} ${_dest}/${_feature}
33 find plugins -type f \( -iname "*.jar" ! -iname "*migration*" \) | while read _plugin ; do
34 install -Dm644 ${_plugin} ${_dest}/${_plugin}