blob: de1702dde7cd549b27e8f6f20a4ac8fffcc9eee9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
#Contributor: Kristof Jozsa <kjozsa@fsdev.hu>
pkgname=eclipse-scala-ide
pkgver=4.1.0
pkgrel=1
pkgdesc="Scala IDE for Eclipse"
arch=('any')
url="http://www.scala-ide.org/"
license=('custom')
depends=('eclipse>=4.4')
source=($pkgname-$pkgver.zip::"http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/update-site.zip"
"LICENSE" "scala-ide.desktop" "product.png"
)
md5sums=('62940db3f4802d5a85b07e2be8dd9b43'
'58b225f304aaf42c8b8738894a10cb96'
'205ac79eeebb9cc43f9a0c836e60cf82'
'c95b1920928f10d2c982afd7f5827a2c')
package() {
install -D -m0644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
install -D -m0644 "$srcdir"/scala-ide.desktop "$pkgdir"/usr/share/applications/scala-ide.desktop
install -D -m0644 "$srcdir"/product.png "$pkgdir"/usr/share/eclipse/dropins/scala-ide/icon.png
_dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
cd "${srcdir}"/site
# Features
find features -type f | while read _feature ; do
if [[ ${_feature} =~ (.*\.jar$) ]] ; then
install -dm755 ${_dest}/${_feature%*.jar}
cd ${_dest}/${_feature/.jar}
jar xf ${srcdir}/site/${_feature}
else
install -Dm644 ${_feature} "${_dest}"/${_feature}
fi
done
# Plugins
find plugins -type f | while read _plugin ; do
install -Dm644 ${_plugin} "${_dest}"/${_plugin}
done
}
|