2016-02-16 06:06:52 +08:00
|
|
|
pkgbase=eclipse
|
2016-03-03 01:19:30 +08:00
|
|
|
pkgname=(eclipse-{java,cpp,php,jee})
|
2016-03-06 19:50:57 +08:00
|
|
|
pkgver=4.5.2
|
2016-03-27 04:16:23 +08:00
|
|
|
pkgrel=2
|
2015-07-05 00:13:45 +08:00
|
|
|
_release=mars
|
2016-03-06 19:50:57 +08:00
|
|
|
_rel=2
|
2016-02-16 06:06:52 +08:00
|
|
|
pkgdesc="Highly extensible IDE"
|
2013-04-30 05:01:28 +08:00
|
|
|
arch=('x86_64')
|
|
|
|
url="http://eclipse.org"
|
2016-02-16 06:06:52 +08:00
|
|
|
depends=('java-environment' 'gtk2' 'unzip' 'libxtst')
|
|
|
|
optdepends=('libwebkit-gtk2: for in app manual')
|
|
|
|
install=${pkgbase}.install
|
2013-11-04 03:37:42 +08:00
|
|
|
license=("EPL/1.0")
|
2016-03-06 19:50:57 +08:00
|
|
|
source=("http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/$_release/$_rel/eclipse-java-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/$_release/$_rel/eclipse-cpp-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/$_release/$_rel/eclipse-php-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/$_release/$_rel/eclipse-jee-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
2016-02-16 06:06:52 +08:00
|
|
|
'eclipse-java.desktop'
|
|
|
|
'eclipse-cpp.desktop'
|
|
|
|
'eclipse-php.desktop'
|
2016-03-03 01:19:30 +08:00
|
|
|
'eclipse-jee.desktop'
|
2013-04-30 05:01:28 +08:00
|
|
|
'eclipse.png'
|
2016-03-06 19:50:57 +08:00
|
|
|
'epl-v10.html'
|
|
|
|
'eclipse.sh')
|
|
|
|
noextract=("eclipse-java-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"eclipse-cpp-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"eclipse-php-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"eclipse-jee-$_release-$_rel-linux-gtk-x86_64.tar.gz")
|
|
|
|
sha1sums=('7fdeda6a8c4db221539d67e0599f8104440f6675'
|
|
|
|
'365a30ed0cdd3e833233d742e61fb065319a3cc5'
|
|
|
|
'7dd96dcb6f10685c682cf8b0b04d42b313149ff8'
|
|
|
|
'53e6f8dcc1f0fdd59eb72dc4726c8092fe5001e8'
|
2016-02-16 06:06:52 +08:00
|
|
|
'8272587b38fb823aed510a75dfe1d91d249ae74f'
|
|
|
|
'67dc0d49a668e61087d24c89999c5f88eccb2e71'
|
|
|
|
'838df3cbc1ece133f81a0677636fe2b793cb9b02'
|
2016-03-03 01:19:30 +08:00
|
|
|
'adeb6355fa963102126bf653e87b6fed5c18a1a0'
|
2016-02-16 06:06:52 +08:00
|
|
|
'd08cd9a8e5f4f87af4f4e61e4744e273917d0309'
|
2016-03-06 19:50:57 +08:00
|
|
|
'35666c54f2406125707e63edab12f2914d85ca76'
|
|
|
|
'05d119f25c30f6703f624ae836a3f1d9cd8fa800')
|
2016-02-16 06:06:52 +08:00
|
|
|
|
2013-04-30 05:01:28 +08:00
|
|
|
|
2016-02-16 06:06:52 +08:00
|
|
|
prepare() {
|
2016-03-06 19:50:57 +08:00
|
|
|
bsdtar -xf eclipse-java-$_release-$_rel-linux-gtk-x86_64.tar.gz
|
2016-02-16 06:06:52 +08:00
|
|
|
mv eclipse eclipse-java
|
2016-03-06 19:50:57 +08:00
|
|
|
bsdtar -xf eclipse-cpp-$_release-$_rel-linux-gtk-x86_64.tar.gz
|
2016-02-16 06:06:52 +08:00
|
|
|
mv eclipse eclipse-cpp
|
2016-03-06 19:50:57 +08:00
|
|
|
bsdtar -xf eclipse-php-$_release-$_rel-linux-gtk-x86_64.tar.gz
|
2016-02-16 06:06:52 +08:00
|
|
|
mv eclipse eclipse-php
|
2016-03-06 19:50:57 +08:00
|
|
|
bsdtar -xf eclipse-jee-$_release-$_rel-linux-gtk-x86_64.tar.gz
|
2016-03-03 01:19:30 +08:00
|
|
|
mv eclipse eclipse-jee
|
2016-02-16 06:06:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_eclipse-java() {
|
|
|
|
conflicts=('eclipse')
|
|
|
|
provides=('eclipse')
|
|
|
|
cd ${srcdir}
|
2013-04-30 05:01:28 +08:00
|
|
|
|
2014-07-01 03:53:59 +08:00
|
|
|
# create directories
|
2016-02-16 06:06:52 +08:00
|
|
|
install -dm755 "${pkgdir}"/usr/{share/{applications,eclipse-java,licenses/eclipse-java},bin}
|
|
|
|
|
|
|
|
# install bin symlink
|
|
|
|
install -D eclipse.sh ${pkgdir}/usr/bin/eclipse-java
|
|
|
|
sed -i s!'/usr/share/eclipse'!'/usr/share/eclipse-java'! \
|
|
|
|
${pkgdir}/usr/bin/eclipse-java
|
|
|
|
|
|
|
|
# install .desktop and png
|
|
|
|
install -Dm644 "${srcdir}/eclipse-java.desktop" "${pkgdir}/usr/share/applications/eclipse-java.desktop"
|
|
|
|
install -Dm644 "${srcdir}/eclipse.png" "${pkgdir}/usr/share/pixmaps/eclipse-java.png"
|
2014-07-01 03:53:59 +08:00
|
|
|
|
2013-04-30 05:01:28 +08:00
|
|
|
# install eclipse
|
2016-02-16 06:06:52 +08:00
|
|
|
cp -ar "${srcdir}/eclipse-java" "${pkgdir}/usr/share/"
|
2013-04-30 05:01:28 +08:00
|
|
|
|
2016-02-16 06:06:52 +08:00
|
|
|
# license
|
|
|
|
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-java/epl-v10.html"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_eclipse-cpp() {
|
2016-03-27 04:16:23 +08:00
|
|
|
conflicts=('eclipse')
|
|
|
|
provides=('eclipse')
|
2016-02-16 06:06:52 +08:00
|
|
|
pkgdesc+=" - C/C++"
|
|
|
|
cd ${srcdir}
|
|
|
|
|
|
|
|
# create directories
|
|
|
|
install -dm755 "${pkgdir}"/usr/{share/{applications,eclipse-cpp,licenses/eclipse-cpp},bin}
|
|
|
|
|
2013-04-30 05:01:28 +08:00
|
|
|
# install bin symlink
|
2016-02-16 06:06:52 +08:00
|
|
|
install -D eclipse.sh ${pkgdir}/usr/bin/eclipse-cpp
|
|
|
|
sed -i s!'/usr/share/eclipse'!'/usr/share/eclipse-cpp'! \
|
|
|
|
${pkgdir}/usr/bin/eclipse-cpp
|
2013-11-04 03:37:42 +08:00
|
|
|
|
2016-02-16 06:06:52 +08:00
|
|
|
# install .desktop and png
|
|
|
|
install -Dm644 "${srcdir}/eclipse-cpp.desktop" "${pkgdir}/usr/share/applications/eclipse-cpp.desktop"
|
|
|
|
install -Dm644 "${srcdir}/eclipse.png" "${pkgdir}/usr/share/pixmaps/eclipse-cpp.png"
|
|
|
|
|
|
|
|
# install eclipse
|
|
|
|
cp -ar "${srcdir}/eclipse-cpp" "${pkgdir}/usr/share/"
|
|
|
|
|
|
|
|
# license
|
|
|
|
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-cpp/epl-v10.html"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_eclipse-php() {
|
2016-03-27 04:16:23 +08:00
|
|
|
conflicts=('eclipse')
|
|
|
|
provides=('eclipse')
|
2016-02-16 06:06:52 +08:00
|
|
|
pkgdesc+=" - PHP"
|
|
|
|
cd ${srcdir}
|
2013-04-30 05:01:28 +08:00
|
|
|
|
2016-02-16 06:06:52 +08:00
|
|
|
# create directories
|
|
|
|
install -dm755 "${pkgdir}"/usr/{share/{applications,eclipse-php,licenses/eclipse-php},bin}
|
|
|
|
|
|
|
|
# install bin symlink
|
|
|
|
install -D eclipse.sh ${pkgdir}/usr/bin/eclipse-php
|
|
|
|
sed -i s!'/usr/share/eclipse'!'/usr/share/eclipse-php'! \
|
|
|
|
${pkgdir}/usr/bin/eclipse-php
|
|
|
|
|
|
|
|
# install .desktop and png
|
|
|
|
install -Dm644 "${srcdir}/eclipse-php.desktop" "${pkgdir}/usr/share/applications/eclipse-php.desktop"
|
|
|
|
install -Dm644 "${srcdir}/eclipse.png" "${pkgdir}/usr/share/pixmaps/eclipse-php.png"
|
|
|
|
|
|
|
|
# install eclipse
|
|
|
|
cp -ar "${srcdir}/eclipse-php" "${pkgdir}/usr/share/"
|
2013-11-04 03:37:42 +08:00
|
|
|
|
|
|
|
# license
|
2016-02-16 06:06:52 +08:00
|
|
|
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-php/epl-v10.html"
|
2013-04-30 05:01:28 +08:00
|
|
|
}
|
2016-03-03 01:19:30 +08:00
|
|
|
|
|
|
|
package_eclipse-jee() {
|
2016-03-27 04:16:23 +08:00
|
|
|
conflicts=('eclipse')
|
|
|
|
provides=('eclipse')
|
2016-03-03 01:19:30 +08:00
|
|
|
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"
|
|
|
|
}
|