public
Created

  • Download Gist
eclipse-emf.PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
# Maintainer: St├ęphane Marguet (Stemp) <smarguet@gmail.com>
# Contributor: scippio <scippio [at] berounet.cz>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Rubin Simons <rubin@xs4all.nl>
 
pkgname=eclipse-emf
pkgver=2.8.3
_reldate=201301250826
epoch=1
pkgrel=1
pkgdesc="EMF and XSD frameworks for the Eclipse platform"
arch=('any')
url="http://www.eclipse.org/modeling/emf/"
license=('EPL')
depends=('eclipse>=3.5')
changelog=ChangeLog
_mirror="http://www.eclipse.org/downloads/download.php?r=1&mirror_id=514&file="
source=("$_mirror/modeling/emf/emf/downloads/drops/${pkgver}/R${_reldate}/emf-xsd-SDK-${pkgver}.zip")
 
sha256sums=('dab26cc838fd8bef209c8818ac2d7068c9b92539887812d4a3bfb32d446c9377')
 
package() {
_dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
 
cd "${srcdir}/eclipse"
 
# Features
find features -type f | while read _feature ; do
if [[ ${_feature} =~ (.*\.jar$) ]] ; then
install -dm755 "${_dest}"/${_feature%*.jar}
cd "${_dest}"/${_feature/.jar}
jar xf "${srcdir}/${_feature}"
else
install -Dm644 ${_feature} "${_dest}/${_feature}"
fi
done
 
# Plugins
find plugins -type f | while read _plugin ; do
install -Dm644 ${_plugin} "${_dest}/${_plugin}"
done
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.