updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / eclipse-emf-runtime / PKGBUILD
blob051ec2711b3ebf85db9e77b06d28e0d9b4e5950b
1 # Maintainer: Shanto <shanto@hotmail.com>
2 # Contributor: Jesus Jerez <jerezmoreno@gmail.com>
4 pkgname=eclipse-emf-runtime
5 pkgver=2.7.1
6 _pkgbuild=R201109131156
7 pkgrel=1
8 pkgdesc="EMF and XSD runtime only for the Eclipse platform"
9 url="http://www.eclipse.org/modeling/emf/"
10 arch=('any')
11 license=('EPL')
12 depends=('eclipse')
13 makedepends=('unzip')
14 conflicts=('eclipse-emf')
15 provides=('eclipse-emf')
16 changelog=$pkgname.changelog
17 _mirror="http://www.eclipse.org/downloads/download.php?r=1&file="
18 source=("$_mirror/modeling/emf/emf/downloads/drops/${pkgver:0:3}.x/${_pkgbuild}/emf-runtime-${pkgver}.zip"
19         "$_mirror/modeling/emf/emf/downloads/drops/${pkgver:0:3}.x/${_pkgbuild}/xsd-runtime-${pkgver}.zip")
20 md5sums=('78d4f7ce58b69c3d5f63c2c0d50b4659'
21          '3cbabb197572af4f7afe6ebc3d044dd4')
23 build() {
24   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
26   cd ${srcdir}/eclipse
28   # Features
29   find features -type f | while read _feature ; do
30     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
31       install -dm755 ${_dest}/${_feature%*.jar}
32       cd ${_dest}/${_feature/.jar}
33       jar xf ${srcdir}/${_feature} || return 1
34     else
35       install -Dm644 ${_feature} ${_dest}/${_feature}
36     fi
37   done
39   # Plugins
40   find plugins -type f | while read _plugin ; do
41     install -Dm644 ${_plugin} ${_dest}/${_plugin}
42   done