updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / eclipse-phpeclipse / PKGBUILD
blobb789b799ab7b231afaf7a7b52067fa56f08f86f1
1 # $Id: PKGBUILD 3892 2009-10-12 00:36:29Z cprimier $
2 # Maintainer: Corrado Primier <bardo@aur.archlinux.org>
3 # Contributor: Frank Oosterhuis <frank@scriptzone.nl>
5 pkgname=eclipse-phpeclipse
6 _reldate=200910091456
7 pkgver=1.2.3
8 pkgrel=1
9 pkgdesc="PHP - Support for the Eclipse IDE Framework"
10 arch=('any')
11 url="http://www.phpeclipse.com/"
12 license=('CPL')
13 depends=('eclipse')
14 source=("http://downloads.sourceforge.net/phpeclipse/PHPEclipse-${pkgver}.${_reldate}PRD-bin.zip")
15 md5sums=('979626fc167a77f019c729be91e3af60')
17 build() {
18   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
20   cd ${srcdir}
22   # Features
23   find features -type f | while read _feature ; do
24     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
25       install -dm755 ${_dest}/${_feature%*.jar}
26       cd ${_dest}/${_feature/.jar}
27       jar xf ${srcdir}/${_feature} || return 1
28     else
29       install -Dm644 ${_feature} ${_dest}/${_feature}
30     fi
31   done
33   # Plugins
34   find plugins -type f | while read _plugin ; do
35     install -Dm644 ${_plugin} ${_dest}/${_plugin}
36   done
39 # vim:set ts=2 sw=2 et: