updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / eclipse-mylyn / PKGBUILD
blob9f2b1db0e15e59eb48465ed09cea83a39e8becaa
1 # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
2 # Contributor: Angel Velasquez <angvp@archlinux.org>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
5 pkgname=eclipse-mylyn
6 pkgver=3.6.4
7 _reldate=20111118-0100
8 pkgrel=1
9 pkgdesc="A task-focused interface for Eclipse"
10 arch=('any')
11 url="http://www.eclipse.org/mylyn/"
12 license=('EPL')
13 depends=('eclipse')
14 makedepends=('unzip')
15 optdepends=('bugzilla: ticketing support')
16 source=(http://download.eclipse.org/mylyn/drops/${pkgver}/v${_reldate}/mylyn-${pkgver}.v${_reldate}.zip)
17 replaces=('eclipse-mylyn-extras')
18 changelog=ChangeLog
19 provices=("eclipse-mylyn-extras=${pkgver}")
20 md5sums=('e685a42f9d6327bf633ba12770c593ac')
22 build() {
23   return 0
26 package() {
27   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
29   cd ${srcdir}
31   # Features
32   find features -type f | while read _feature ; do
33     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
34       install -dm755 ${_dest}/${_feature%*.jar}
35       cd ${_dest}/${_feature/.jar}
36       jar xf ${srcdir}/${_feature} || return 1
37       cd - >/dev/null 2>&1
38     elif [[ ! ${_feature} =~ (.*\.jar.pack.gz) ]] || [ ! -e ${_feature%\.pack\.gz$} ] ; then
39       install -Dm644 ${_feature} ${_dest}/${_feature}
40     fi
41   done
43   # Plugins
44   find plugins -type f | while read _plugin ; do
45     if [[ ! ${_plugin} =~ (.*\.jar.pack.gz) ]] || [ ! -e ${_plugin%\.pack\.gz$} ] ; then
46       install -Dm644 ${_plugin} ${_dest}/${_plugin}
47     fi
48   done