summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90add4452ac3842a7412a5b535fd3b674b1813b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: St├ęphane Marguet (Stemp) <smarguet@gmail.com>
# Contributor: scippio <scippio [at] berounet.cz>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Rubin Simons <rubin@xs4all.nl>
# Contributor: Arthur Zamarin <arthurzam@gmail.com>
# Contributor: David Rosenstrauch <darose@darose.net>
# Maintainer: Raimar Buehmann <raimar at buehmann dot de>

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
}