# Maintainer: Forrest L <cybercyst at gmail com>
# Maintainer: Michael P <ptchinster@archlinux.us>
# Contributor: Marcin "eXine" M. <exine@jun.pl>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# Maintainer: Ashok `ScriptDevil` Gautham <ScriptDevil@gmail.com>
# Maintainer: Laszlo Papp <djszapi2 at gmail com>
# Maintainer: Antonio Santos <asantos at gmail dot com>
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
}