1 # Contributor: Jonathan Wiersma <archaur at jonw dot org>
2 pkgname=eclipse-mylyn-extras
6 pkgdesc="Support for additional task repositories in Mylyn $pkgver for Eclipse"
8 url="http://www.eclipse.org/mylyn/"
10 depends=("eclipse-mylyn=$pkgver")
11 conflicts=("eclipse-mylyn>$pkgver")
13 _mirror="http://mirror.csclub.uwaterloo.ca/eclipse"
14 noextract=($pkgname-$pkgver.zip)
15 source=("$pkgname-$pkgver.zip::$_mirror/tools/mylyn/update-archive/$pkgver/v$_reldate/mylyn-$pkgver.v$_reldate-extras.zip")
19 mkdir -p $srcdir/eclipse || return 1
20 cd $srcdir/eclipse || return 1
21 jar xf $srcdir/$pkgname-$pkgver.zip || return 1
25 cd $srcdir/eclipse || return 1
26 _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
28 # Unjar features and install (ignore packed jars)
29 find features -type f | while read _feature ; do
30 if [[ ${_feature} =~ (.*\.jar$) ]] ; then
31 install -dm755 ${_dest}/${_feature%\.jar} || return 1
32 pushd ${_dest}/${_feature%\.jar} >/dev/null || return 1
33 jar xf ${srcdir}/eclipse/${_feature} || return 1
34 popd >/dev/null || return 1
35 elif [[ ! ${_feature} =~ (.*\.jar.pack.gz) ]] ; then
36 install -Dm644 $_file $_dest/$_file || return 1
40 find * -type f -regextype posix-extended \
41 -not -path "features/*" \
42 -not -regex "plugins/.*\.jar\.pack\.gz" \
43 | while read _file ; do
44 install -Dm644 $_file $_dest/$_file || return 1
48 md5sums=('84aa0457d57413a427b9b4f30b890ea6')