updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / eclipse-ajdt / PKGBUILD
blob3386c08c6221fccf2db3fbb0cd0dd6ca0d3a5ea4
1 # Maintainer: Christoph Drexler <chrdr at gmx dot at>
3 pkgname=eclipse-ajdt
4 pkgver=2.1.3
5 pkgrel=1
6 pkgdesc="AspectJ Development Tools (Eclipse Plugin)"
7 arch=('any')
8 url="http://www.eclipse.org/ajdt/"
9 license=('EPL')
10 depends=('eclipse>=3.7')
11 source=(http://download.eclipse.org/tools/ajdt/37/update/ajdt_${pkgver}_for_eclipse_3.7.zip)
12 md5sums=('148a7ebe526e2bf9e9a6f7652dfbe9c9')
14 build() {
15   # nothing to do
16   true
19 package() {
20   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
22   cd ${srcdir}
24   # Features
25   find features -type f | while read _feature ; do
26     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
27       install -dm755 ${_dest}/${_feature%*.jar}
28       cd ${_dest}/${_feature/.jar}
29       jar xf ${srcdir}/${_feature}
30     else
31       install -Dm644 ${_feature} ${_dest}/${_feature}
32     fi
33   done
35   # Plugins
36   find plugins -type f | while read _plugin ; do
37     install -Dm644 ${_plugin} ${_dest}/${_plugin}
38   done