updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / eclipse-mtj / PKGBUILD
blob3b65a7f3c251012de8ab8f8ca993ab525b6edc89
1 # Contributor: codestation <cesarg9 at gmail dot com>
3 pkgname=eclipse-mtj
4 pkgver=1.1.1
5 pkgrel=1
6 pkgdesc="A plugin for the Eclipse frameworks to support mobile device Java application development."
7 arch=('any')
8 url="http://www.eclipse.org/dsdp/mtj/"
9 depends=('eclipse')
10 license="EPL"
11 source=(http://mirrors.ibiblio.org/pub/mirrors/eclipse/dsdp/mtj/downloads/drops/S-1.1.1RC1-201009031435/dsdp-mtj-runtime-1.1.1RC1.zip)
12 md5sums=('a1633bb2617ff3ab6a860e436e4f4263')
14 build() {
15   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
17   cd ${srcdir}
19   # Features
20   find features -type f | while read _feature ; do
21     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
22       install -dm755 ${_dest}/${_feature%*.jar}
23       cd ${_dest}/${_feature/.jar}
24       jar xf ${srcdir}/${_feature} || return 1
25     else
26       install -Dm644 ${_feature} ${_dest}/${_feature}
27     fi
28   done
30   # Plugins
31   find plugins -type f | while read _plugin ; do
32     install -Dm644 ${_plugin} ${_dest}/${_plugin}
33   done