updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / eclipse-ve / PKGBUILD
blob0598ddb623ce31d3e21873fe61c8a5092ea4494a
1 # $Id: PKGBUILD 35437 2010-12-20 13:49:41Z angvp $
2 # Maintainer: Angel Velasquez <angvp@archlinux.org>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
4 # Contributor: Rubin Simons <rubin@xs4all.nl>
6 pkgname=eclipse-ve
7 pkgver=1.5.0
8 pkgrel=1
9 _reldate=201012021328
10 pkgdesc="Visual Editor framework for the Eclipse platform"
11 arch=('any')
12 url="http://www.eclipse.org/vep/"
13 license=('EPL')
14 depends=('eclipse-emf' 'eclipse-gef')
16 # Source doesn't exist
17 #source=(http://download.eclipse.org/tools/ve/downloads/drops/${pkgver}/R${_reldate}/VE-Update-${pkgver}.zip)
18 #md5sums=('49dba69a94960dcff11b239f89ca112d')
19 # Perhaps there's better luck with this one?
20 #source=("http://archive.eclipse.org/tools/archives/ve.tgz")
22 build() {
23   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
25   cd ${srcdir}
27   # Features
28   find features -type f | while read _feature ; do
29     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
30       install -dm755 ${_dest}/${_feature%.jar}
31       cd ${_dest}/${_feature/.jar}
32       jar xf ${srcdir}/${_feature} || return 1
33       cd - >/dev/null 2>&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
43   cd ${_dest}/plugins
44   for _plugin in *.jar.pack.gz ; do
45     gunzip -q ${_plugin}
46     unpack200 -qr ${_plugin%.gz} ${_plugin%.pack.gz}
47   done
49   # Other
50   install -Dm644 ${srcdir}/{artifacts,content}.jar ${_dest}
53 # vim:set ts=2 sw=2 et:
54 md5sums=('ecb54b171bb8583623bc184b7e340e97')