PKGBUILD

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
# Contributor: Jesus Jerez <[email protected]>
# Maintainer: Ng Oon-Ee <  n g  o o n  e e AT g m a i l DOT c o m>

pkgname=eclipse-linuxtools
pkgver=0.9.0
pkgrel=1
pkgdesc="Eclipse Linux Tools Project"
url="http://www.eclipse.org/linuxtools"
arch=('any')
license=('EPL')
depends=('eclipse')
makedepends=('unzip')
_mirror="http://www.eclipse.org/downloads/download.php?r=1&file="
source=("$_mirror/technology/linuxtools/linuxtools-${pkgver:0:3}-incubation.zip")
md5sums=('52e35041a0c55bac9d1c14c28635facd')

build() {
	_dest=$pkgdir/usr/share/eclipse/dropins/${pkgname#eclipse-}
	_src=$srcdir/update-${pkgver:0:3}
	cd $_src
	install -dm755 $_dest/
	find features plugins -type f -name '*.jar' | while read jar ; do
		install -dm755 ${_dest}/${jar%*.jar}
		cd ${_dest}/${jar/.jar}
		jar xf $_src/${jar}
	done
}