updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / eclipse-rtmtools / PKGBUILD
blob2768d95e780b3d807e76d6767a370ab9f11965ea
1 # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
3 pkgname="eclipse-rtmtools"
4 pkgver=1.0.0
5 pkgrel=1
6 pkgdesc="OpenRTM-aist tools to manipulate RT components in real-time using a graphical interface"
7 arch=('i686' 'x86_64')
8 url="http://www.openrtm.org"
9 license=('GPL')
10 depends=("eclipse-emf" "eclipse-gef")
11 optdepends=('openrtm-aist: Compilation of C++ components'
12             'openrtm-aist-java: Compilation of Java components'
13             'openrtm-aist-python: Compilation of Python components')
14 source=("http://www.openrtm.org/pub/OpenRTM-aist/tools/1.0.0/rtmtools100release_en.zip")
16 md5sums=('e1051282f79dd8a2618ad993e92063ce')
18 build() {
19         _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
21         cd ${srcdir}
23         # Features
24         find features -type f | while read _feature ; do
25                 if [[ ${_feature} =~ (.*\.jar$) ]] ; then
26                         install -dm755 ${_dest}/${_feature%*.jar}
27                         cd ${_dest}/${_feature/.jar}
28                         jar xf ${srcdir}/${_feature} || return 1
29                 else
30                         install -Dm644 ${_feature} ${_dest}/${_feature}
31                 fi
32         done
34         # Plugins
35         find plugins -type f | while read _plugin ; do
36                 install -Dm644 ${_plugin} ${_dest}/${_plugin}
37         done