blob: 720eca1e16cf73669c4615aefbcda91fa29ff9c2 (
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
39
|
#Maintainer: Raimar Bühmann <raimar _at_ buehmann _dot_ de>
pkgname=eclipse-moreunit
pkgver=3.2.0
pkgrel=1
pkgdesc='MoreUnit plugins for Eclipse IDE to assist in writing more unit tests'
arch=('any')
url='http://moreunit.sourceforge.net/'
license=('EPL')
depends=('eclipse>=4.5.0')
options=('!strip')
source=("download.zip::http://sourceforge.net/projects/moreunit/files/moreunit/Version%20${pkgver}/org.moreunit-${pkgver}.zip")
sha256sums=('f172be1b8342e52118b94d4dda4e4ee81f02d936f446c75ff47cbb8d1e72dbcc')
package() {
# sub folder of the zip file containing the features and plugins folder
_subfolder=$srcdir/org.${pkgname/eclipse-}-$pkgver
cd $_subfolder
# remove sub features of MoreUnit
rm -Rf features/org.moreunit.*
# remove plug-ins containing sources
rm plugins/*.source_*
_dest=$pkgdir/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse
install -d $_dest
# extract features (otherwise features are not recognized)
find features -type f | while read _feature ; do
if [[ $_feature =~ (.*\.jar$) ]] ; then
install -dm755 $_dest/${_feature%*.jar}
cd $_dest/${_feature/.jar}
jar xf $_subfolder/$_feature || return 1
else
install -Dm644 $_subfolder/$_feature $_dest/$_feature
fi
done
# copy plugins
find plugins -type f | while read _plugin ; do
install -Dm644 $_plugin $_dest/$_plugin
done
}
|