updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / eclipse-scala-ide / PKGBUILD
blob62ec09e436d4a438c7ada44b46212360b5483838
1 # Maintainer: Kristof Jozsa <kjozsa@fsdev.hu>
3 pkgname=eclipse-scala-ide
4 pkgver=2.0.0
5 pkgrel=2
6 pkgdesc="Scala IDE for Eclipse"
7 arch=('i686' 'x86_64')
8 url="http://www.scala-ide.org/"
9 license=('custom')
10 depends=('eclipse>=3.7')
11 optdepends=('eclipse-ajdt: aspect weaving support')
13 source=(\
14 http://download.scala-ide.org/releases-29/stable/org.scala-ide.sdt.update-site.zip
15 LICENSE)
17 md5sums=('681078ece77c7fb3368a3c5ffdb567e7' '58b225f304aaf42c8b8738894a10cb96')
19 build() {
20   install -D -m0644 $startdir/LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
22   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
23   cd ${srcdir}/site
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}/site/${_feature} || return 1
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