updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / eclipse-mercurialeclipse / PKGBUILD
blob05b16784dd2e7f4e802d158225cbf1db9de63ae1
1 # Contributor: Jesus Jerez <jhuss@archlinux.org.ve>
3 pkgname=eclipse-mercurialeclipse
4 pkgver=1.7.0
5 _pkgbuild=201006082155
6 pkgrel=2
7 pkgdesc="Eclipse plugin for Mercurial version system"
8 url="http://javaforge.com/project/HGE"
9 arch=('any')
10 license=('EPL')
11 depends=('eclipse' 'mercurial')
12 changelog=$pkgname.changelog
13 source=("http://javaforge.com/displayDocument/mercurialeclipse_${pkgver}.${_pkgbuild}.jar?doc_id=88035"
14         "http://javaforge.com/displayDocument/com.vectrace.MercurialEclipse_${pkgver}.${_pkgbuild}.jar?doc_id=88034")
15 md5sums=('dece165b5edba870befdb50ec65940ed'
16          'bdf2fd808bf2517589ad21d26719d26e')
17 sha256sums=('45b4f7e369ad5f63d0d2509a73669d2762ba062c952155a6c72d63587262ee4b'
18             'fb91ab248858a4a3cf903f833216fcc307e188a8c9f98c0984c71c76f2e80966')
20 build() {
22   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
24   mkdir ${srcdir}/{features,plugins} || return 1
25   cp $startdir/mercurialeclipse_1.7.0.201006082155.jar?doc_id=88035 ${srcdir}/features/mercurialeclipse_1.7.0.201006082155.jar || return 1
26   cp $startdir/com.vectrace.MercurialEclipse_1.7.0.201006082155.jar?doc_id=88034 ${srcdir}/plugins/com.vectrace.MercurialEclipse_1.6.0.v201005111545.jar || return 1
27   
28   cd ${srcdir}
30   # Features
31   find features -type f | while read _feature ; do
32     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
33       install -dm755 ${_dest}/${_feature%*.jar}
34       cd ${_dest}/${_feature/.jar}
35       jar xf ${srcdir}/${_feature} || return 1
36     else
37       install -Dm644 ${_feature} ${_dest}/${_feature}
38     fi
39   done
41   # Plugins
42   find plugins -type f | while read _plugin ; do
43     install -Dm644 ${_plugin} ${_dest}/${_plugin}
44   done