updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / eclipse-emf / PKGBUILD
blobc3b5969af31c50342692890ac67ff322cd2e057e
1 # $Id: PKGBUILD 59534 2011-11-27 21:17:58Z ebelanger $
2 # Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
4 # Contributor: Rubin Simons <rubin@xs4all.nl>
6 pkgname=eclipse-emf
7 pkgver=2.7.1
8 _reldate=201109131156
9 pkgrel=1
10 pkgdesc="EMF and XSD frameworks for the Eclipse platform"
11 arch=('any')
12 url="http://www.eclipse.org/modeling/emf/"
13 license=('EPL')
14 depends=('eclipse')
15 source=(http://download.eclipse.org/modeling/emf/emf/downloads/drops/2.7.x/R${_reldate}/emf-xsd-SDK-${pkgver}.zip)
16 md5sums=('a97cf4c3a6086e478877c08d687d04df')
18 package() {
19   _dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
21   cd "${srcdir}/eclipse"
23   # Features
24   find features -type f | while read _feature ; do
25     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
26       install -dm755 "${_dest}"/${_feature%*.jar}
27       cd "${_dest}"/${_feature/.jar}
28       jar xf "${srcdir}/${_feature}"
29     else
30       install -Dm644 ${_feature} "${_dest}/${_feature}"
31     fi
32   done
34   # Plugins
35   find plugins -type f | while read _plugin ; do
36     install -Dm644 ${_plugin} "${_dest}/${_plugin}"
37   done