updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / eclipse-jdt / PKGBUILD
blobb4b5bedd8f0a0402d237abd2d93a649186d81565
1 # Maintainer: Shanto <shanto@hotmail.com>
2 # Contributor: Jesus Jerez <jerezmoreno@gmail.com>
4 pkgname=eclipse-jdt
5 pkgver=3.7.1
6 pkgdate=201109091335
7 pkgrel=1
8 pkgdesc="Java Development Tools - Separated from Eclipse SDK package. Use with eclipse-platform"
9 url="http://www.eclipse.org/jdt/"
10 arch=('any')
11 license=('EPL')
12 depends=('eclipse-platform')
13 makedepends=('unzip')
14 source=("http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops/R-${pkgver}-${pkgdate}/org.eclipse.jdt-${pkgver}.zip")
15 md5sums=('35419e882a9f90ee010937a7403ff727')
17 build() {
19   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
21   cd ${srcdir}
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