updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / eclipse-scala / PKGBUILD
blob28c18f51db519befe5064c60f4b643029fce9c1e
1 # Maintainer: xduugu
2 pkgname=eclipse-scala
3 pkgver=2.7.7
4 pkgrel=1
5 pkgdesc="scala IDE for eclipse"
6 arch=('any')
7 url="http://www.scala-lang.org/node/94"
8 license=('BSD')
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')
14 build() {
15   local dest="$pkgdir/usr/share/eclipse/dropins/$pkgname/eclipse"
17   install -d "$dest" &&
18   mv "$srcdir/"{features,plugins} "$dest" || return 1
20   # install license
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/&apos;/'"'"'/g;$d' > "$srcdir/LICENSE" &&
24   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
26   cd "$dest/plugins" || return 1
27   local i
28   for i in org.aspectj.*; do
29     mkdir ${i%.*} && bsdtar xf $i -C ${i%.*} && rm $i || return 1
30   done
32   chmod -R a=r,u+w,a+X "$dest" || return 1
35 # vim:set ts=2 sw=2 et: