blob: 34e49ac1f906308926c01a19913957c932ca7c64 (
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: Raimar Buehmann <raimar _at_ buehmann _dot_ de>
pkgname=eclipse-swtbot
pkgver=2.8.0
pkgrel=2
pkgdesc='SWT UI Testing for Eclipse IDE'
arch=('any')
url='https://projects.eclipse.org/projects/technology.swtbot'
license=('EPL')
depends=('eclipse')
options=('!strip')
# http://download.eclipse.org/technology/swtbot/releases/2.8.0/repository.zip
source=(
http://download.eclipse.org/technology/swtbot/releases/${pkgver}/repository.zip
)
sha256sums=('e3db769d911ae730c825841b7d643e23436bea79e7a52af74e4ae5bcfa7d9116')
package() {
_dest=${pkgdir}/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse
cd ${srcdir}
# remove gz files
rm plugins/*.pack.gz
# 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
}
|