Created
July 25, 2013 13:13
-
-
Save Stebalien/6079487 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Stéphane Marguet (Stemp) <[email protected]> | |
# Contributor: scippio <scippio [at] berounet.cz> | |
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> | |
# Contributor: Corrado Primier <[email protected]> | |
# Contributor: Rubin Simons <[email protected]> | |
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment