1 # Contributor: Jesus Jerez <jhuss@archlinux.org.ve>
3 pkgname=eclipse-mercurialeclipse
7 pkgdesc="Eclipse plugin for Mercurial version system"
8 url="http://javaforge.com/project/HGE"
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')
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
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
37 install -Dm644 ${_feature} ${_dest}/${_feature}
42 find plugins -type f | while read _plugin ; do
43 install -Dm644 ${_plugin} ${_dest}/${_plugin}