summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be765eba5aea384412d4f76c11a54cd994343fce (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
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>

pkgname=eclipse-rtmtools
pkgver=1.0.0
pkgrel=1
pkgdesc="OpenRTM-aist tools to manipulate RT components in real-time using a graphical interface"
arch=('i686' 'x86_64')
url="http://www.openrtm.org"
license=('GPL')
depends=('eclipse-emf' 'eclipse-gef')
optdepends=('openrtm-aist: Compilation of C++ components'
            'openrtm-aist-java: Compilation of Java components'
            'openrtm-aist-python: Compilation of Python components')
source=(http://www.openrtm.org/pub/OpenRTM-aist/tools/1.0.0/rtmtools100release_en.zip)
md5sums=('e1051282f79dd8a2618ad993e92063ce')

build() {
	_dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse

	cd ${srcdir}

	# Features
	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

	# Plugins
	find plugins -type f | while read _plugin ; do
		install -Dm644 ${_plugin} ${_dest}/${_plugin}
	done
}