5 pkgdesc="scala IDE for eclipse"
7 url="http://www.scala-lang.org/node/94"
9 depends=('eclipse>=3.5')
10 source=(http://www.scala-lang.org/sites/default/files/linuxsoft_archives/downloads/distrib/files/ch.epfl.lamp.sdt_$pkgver.final.zip)
11 md5sums=('369396d546f07d3334fd59931a5ffa1b')
12 sha256sums=('2c73f5212445200a165bd51d4d33e01cc765373fafea326f41be8bce0cfe5ddd')
15 local dest="$pkgdir/usr/share/eclipse/dropins/$pkgname/eclipse"
18 mv "$srcdir/"{features,plugins} "$dest" || return 1
21 bsdtar xOf "$dest/features/ch.epfl.lamp.sdt_$pkgver.final.jar" feature.xml \
22 | grep -P "<license.*>(.*\n)+\s*</license>" \
23 | sed '1d;2s/^\s*//;s/'/'"'"'/g;$d' > "$srcdir/LICENSE" &&
24 install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
26 cd "$dest/plugins" || return 1
28 for i in org.aspectj.*; do
29 mkdir ${i%.*} && bsdtar xf $i -C ${i%.*} && rm $i || return 1
32 chmod -R a=r,u+w,a+X "$dest" || return 1
35 # vim:set ts=2 sw=2 et: