# Maintainer: Forrest L # Maintainer: Michael P # Contributor: Marcin "eXine" M. # Contributor: Artyom Smirnov # Maintainer: Ashok `ScriptDevil` Gautham # Maintainer: Laszlo Papp # Maintainer: Antonio Santos pkgname=eclipse-android _pkgname=ADT pkgver=10.0.0 pkgrel=1 pkgdesc="Eclipse plugin for android" url="http://developer.android.com/sdk/eclipse-adt.html" license=('GPL') arch=('any') depends=('eclipse' 'android-sdk' 'eclipse-wtp-wst') makedepends=('unzip') source=(http://dl.google.com/android/${_pkgname}-${pkgver}.zip) md5sums=('590bd421c63fc2d091809d5769f03bb1') build() { _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse cd ${srcdir} # 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}/${_feature} || return 1 else install -Dm644 ${_feature} ${_dest}/${_feature} fi done # Plugins find plugins -type f | while read _plugin ; do install -Dm644 ${_plugin} ${_dest}/${_plugin} done }