updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / eclipse-mylyn-extras / PKGBUILD
blobc30220be8252cde399257c6c196d48b712081187
1 # Contributor: Jonathan Wiersma <archaur at jonw dot org>
2 pkgname=eclipse-mylyn-extras
3 pkgver=3.3.3
4 _reldate=20100330-0100
5 pkgrel=2
6 pkgdesc="Support for additional task repositories in Mylyn $pkgver for Eclipse"
7 arch=('i686' 'x86_64')
8 url="http://www.eclipse.org/mylyn/"
9 license=('EPL')
10 depends=("eclipse-mylyn=$pkgver")
11 conflicts=("eclipse-mylyn>$pkgver")
12 optdepends=("trac")
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")
17 build() {
18   # Extract archive
19   mkdir -p $srcdir/eclipse || return 1
20   cd $srcdir/eclipse || return 1
21   jar xf $srcdir/$pkgname-$pkgver.zip || return 1
24 package() {
25   cd $srcdir/eclipse || return 1
26   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
27   
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
37     fi
38   done || return 1
39   
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
45       done || return 1
48 md5sums=('84aa0457d57413a427b9b4f30b890ea6')