updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / eclipse-gef-runtime / PKGBUILD
blob22347758c32f5442a2590471ffcb4e679b95168f
1 # Contributor: Jesus Jerez <jhuss@archlinux.org.ve>
3 pkgname=eclipse-gef-runtime
4 pkgver=3.6.1
5 _pkgbuild=M201007121555
6 pkgrel=1
7 pkgdesc="GEF runtime only for the Eclipse platform"
8 url="http://www.eclipse.org/gef/"
9 arch=('any')
10 license=('EPL')
11 depends=('eclipse')
12 makedepends=('unzip')
13 conflicts=('eclipse-gef')
14 provides=('eclipse-gef')
15 changelog=$pkgname.changelog
16 source=("http://download.eclipse.org/tools/gef/downloads/drops/${pkgver}/${_pkgbuild}/GEF-runtime-${_pkgbuild}.zip"
17         "http://download.eclipse.org/tools/gef/downloads/drops/${pkgver}/${_pkgbuild}/GEF-zest-${_pkgbuild}.zip")
18 md5sums=('4a1c9bac6243b8d4a499d69f7a609765'
19          '733b3f205c2d8797a6a9747ad1e43801')
20 sha256sums=('956824a2bca27e142140e88fb15d0431c5fbbcaf924fe374f00c4578b01c83b2'
21             'dfc3c13c4fc970eb0895ed50fdf8e405ebe792c8aec411a63f94fb5823392b60')
23 build() {
25   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
27   cd ${srcdir}/eclipse
29   # Features
30   find features -type f | while read _feature ; do
31     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
32       install -dm755 ${_dest}/${_feature%*.jar}
33       cd ${_dest}/${_feature/.jar}
34       jar xf ${srcdir}/${_feature} || return 1
35     else
36       install -Dm644 ${_feature} ${_dest}/${_feature}
37     fi
38   done
40   # Plugins
41   find plugins -type f | while read _plugin ; do
42     install -Dm644 ${_plugin} ${_dest}/${_plugin}
43   done