updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / eclipse-android / PKGBUILD
blob76a8f003cd2b85225140953b5d1f1c39caf51d6c
1 # Maintainer: Forrest L <cybercyst at gmail com>
2 # Maintainer: Michael P <ptchinster@archlinux.us>
3 # Contributor: Marcin "eXine" M. <exine@jun.pl>
4 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
5 # Maintainer: Ashok `ScriptDevil` Gautham <ScriptDevil@gmail.com>
6 # Maintainer: Laszlo Papp <djszapi2 at gmail com>
7 # Maintainer: Antonio Santos <asantos at gmail dot com>
9 pkgname=eclipse-android
10 _pkgname=ADT
11 pkgver=16.0.1
12 pkgrel=1
13 pkgdesc="Eclipse plugin for android"
14 url="http://developer.android.com/sdk/eclipse-adt.html"
15 license=('GPL')
16 arch=('any')
17 depends=('eclipse' 'android-sdk' 'eclipse-wtp-wst')
18 makedepends=('unzip')
19 source=(http://dl.google.com/android/${_pkgname}-${pkgver}.zip)
20 md5sums=('03a2a23650ddac128c8b9e8aaf0aa433')
22 build() {
23   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
25   cd ${srcdir}
27   # Features
28   find features -type f | while read _feature ; do
29     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
30       install -dm755 ${_dest}/${_feature%*.jar}
31       cd ${_dest}/${_feature/.jar}
32       jar xf ${srcdir}/${_feature} || return 1
33     else
34       install -Dm644 ${_feature} ${_dest}/${_feature}
35     fi
36   done
38   # Plugins
39   find plugins -type f | while read _plugin ; do
40     install -Dm644 ${_plugin} ${_dest}/${_plugin}
41   done