# Contributor: Stéphane Marguet (Stemp) # Contributor: scippio # Contributor: Angel 'angvp' Velasquez # Contributor: Corrado Primier # Contributor: Rubin Simons # Contributor: Arthur Zamarin # Contributor: David Rosenstrauch # Maintainer: Raimar Buehmann pkgname=eclipse-emf pkgver=2.23 pkgrel=1 pkgdesc="EMF and XSD frameworks for the Eclipse platform" arch=('any') url="http://www.eclipse.org/modeling/emf/" license=('EPL') depends=('eclipse') makedepends=('java-environment-common') options=(!strip) source=( #https://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/builds/release/2.23/EMF-Updates-2.23.zip&r=1 "download.zip::https://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/builds/release/${pkgver}/EMF-Updates-${pkgver}.zip&r=1" ) sha256sums=('af5f43ba02500f388c84745f3a1630ba20ebb0b5fe0ba9dba220dbf442921143') package() { _dest=${pkgdir}/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse install -d $_dest # remove feature sources rm features/*source_* # extract features (otherwise features are not recognized) 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 # copy plugins find plugins -type f | while read _plugin ; do install -Dm644 ${_plugin} ${_dest}/${_plugin} done }