eclipse: added eclipse-jee

This commit is contained in:
gnastyle 2016-03-02 18:19:30 +01:00
parent 49090f6266
commit be93fe9dd0
2 changed files with 40 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pkgbase=eclipse
pkgname=(eclipse-{java,cpp,php})
pkgname=(eclipse-{java,cpp,php,jee})
pkgver=4.5.0
pkgrel=2
pkgrel=3
_release=mars
pkgdesc="Highly extensible IDE"
arch=('x86_64')
@ -13,10 +13,12 @@ license=("EPL/1.0")
source=("http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/$_release/R/eclipse-java-$_release-R-linux-gtk-x86_64.tar.gz"
"http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/$_release/R/eclipse-cpp-$_release-R-linux-gtk-x86_64.tar.gz"
"http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/$_release/R/eclipse-php-$_release-R-linux-gtk-x86_64.tar.gz"
"http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/$_release/R/eclipse-jee-$_release-R-linux-gtk-x86_64.tar.gz"
'eclipse.sh'
'eclipse-java.desktop'
'eclipse-cpp.desktop'
'eclipse-php.desktop'
'eclipse-jee.desktop'
'eclipse.png'
'epl-v10.html')
noextract=("eclipse-java-$_release-R-linux-gtk-x86_64.tar.gz"
@ -25,10 +27,12 @@ noextract=("eclipse-java-$_release-R-linux-gtk-x86_64.tar.gz"
sha1sums=('8100e4a60325005c20335d031f3622888c5250f0'
'11f9583e23ae68eb675107e6c9acc48e0a2520ae'
'a6ab769a59db54de208b9694292f7065fdab8067'
'0b857ab8d4b6899fb7907c784dd075f489a45d0f'
'05d119f25c30f6703f624ae836a3f1d9cd8fa800'
'8272587b38fb823aed510a75dfe1d91d249ae74f'
'67dc0d49a668e61087d24c89999c5f88eccb2e71'
'838df3cbc1ece133f81a0677636fe2b793cb9b02'
'adeb6355fa963102126bf653e87b6fed5c18a1a0'
'd08cd9a8e5f4f87af4f4e61e4744e273917d0309'
'35666c54f2406125707e63edab12f2914d85ca76')
@ -40,6 +44,8 @@ prepare() {
mv eclipse eclipse-cpp
bsdtar -xf eclipse-php-$_release-R-linux-gtk-x86_64.tar.gz
mv eclipse eclipse-php
bsdtar -xf eclipse-jee-$_release-R-linux-gtk-x86_64.tar.gz
mv eclipse eclipse-jee
}
package_eclipse-java() {
@ -112,3 +118,26 @@ package_eclipse-php() {
# license
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-php/epl-v10.html"
}
package_eclipse-jee() {
pkgdesc+=" - Java Enterprise Edition"
cd ${srcdir}
# create directories
install -dm755 "${pkgdir}"/usr/{share/{applications,eclipse-jee,licenses/eclipse-jee},bin}
# install bin symlink
install -D eclipse.sh ${pkgdir}/usr/bin/eclipse-jee
sed -i s!'/usr/share/eclipse'!'/usr/share/eclipse-jee'! \
${pkgdir}/usr/bin/eclipse-jee
# install .desktop and png
install -Dm644 "${srcdir}/eclipse-jee.desktop" "${pkgdir}/usr/share/applications/eclipse-jee.desktop"
install -Dm644 "${srcdir}/eclipse.png" "${pkgdir}/usr/share/pixmaps/eclipse-jee.png"
# install eclipse
cp -ar "${srcdir}/eclipse-jee" "${pkgdir}/usr/share/"
# license
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-jee/epl-v10.html"
}

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Eclipse JEE
Comment=A Java Enterprise Edition Development Environment
Icon=eclipse-jee
Exec=eclipse-jee
Terminal=false
Type=Application
Categories=Development;IDE;Java;JEE
StartupNotify=true