2016-02-16 06:06:52 +08:00
|
|
|
pkgbase=eclipse
|
2018-01-08 05:10:39 +08:00
|
|
|
pkgname=(eclipse-{java,cpp,php,jee,javascript})
|
|
|
|
pkgver=4.7.2
|
2016-08-19 22:20:15 +08:00
|
|
|
pkgrel=1
|
2018-01-08 05:10:39 +08:00
|
|
|
_release=neon
|
|
|
|
_rel=3
|
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"
|
2018-01-08 05:10:39 +08:00
|
|
|
"http://eclipse.mirror.garr.it/mirrors/eclipse//technology/epp/downloads/release/$_release/$_rel/eclipse-javascript-$_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'
|
2018-01-08 05:10:39 +08:00
|
|
|
'eclipse-javascript.desktop'
|
2016-08-19 22:20:15 +08:00
|
|
|
'eclipse.svg'
|
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"
|
2018-01-08 05:10:39 +08:00
|
|
|
"eclipse-jee-$_release-$_rel-linux-gtk-x86_64.tar.gz"
|
|
|
|
"eclipse-javascript-$_release-$_rel-linux-gtk-x86_64.tar.gz")
|
|
|
|
sha1sums=('6bebb30f41bb07e85dfb783b0a4435ccddbcc6f4'
|
|
|
|
'3ab16e24f895d65570339b35730f80b5349b6da2'
|
|
|
|
'42fcb7f30a0397e170682a2f334a748c566e53ec'
|
|
|
|
'6391821bc778081226fb3e566417dcac306bf380'
|
|
|
|
'dd489bfad3ea5dbd2e5c8a11a97dcef759a03df9'
|
2016-02-16 06:06:52 +08:00
|
|
|
'8272587b38fb823aed510a75dfe1d91d249ae74f'
|
|
|
|
'67dc0d49a668e61087d24c89999c5f88eccb2e71'
|
|
|
|
'838df3cbc1ece133f81a0677636fe2b793cb9b02'
|
2016-03-03 01:19:30 +08:00
|
|
|
'adeb6355fa963102126bf653e87b6fed5c18a1a0'
|
2018-01-08 05:10:39 +08:00
|
|
|
'a12272c6e68e2fe47a94bc0c50fae030bc77b862'
|
2016-08-19 22:20:15 +08:00
|
|
|
'91206140df8c2039bb29fc9e67f067f1b07003a4'
|
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
|
2018-01-08 05:10:39 +08:00
|
|
|
bsdtar -xf eclipse-javascript-$_release-$_rel-linux-gtk-x86_64.tar.gz
|
|
|
|
mv eclipse eclipse-javascript
|
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
|
|
|
|
|
2016-08-19 22:20:15 +08:00
|
|
|
# install .desktop and svg
|
2016-02-16 06:06:52 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse-java.desktop" "${pkgdir}/usr/share/applications/eclipse-java.desktop"
|
2016-08-19 22:20:15 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse.svg" "${pkgdir}/usr/share/pixmaps/eclipse-java.svg"
|
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-08-19 22:20:15 +08:00
|
|
|
# install .desktop and svg
|
2016-02-16 06:06:52 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse-cpp.desktop" "${pkgdir}/usr/share/applications/eclipse-cpp.desktop"
|
2016-08-19 22:20:15 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse.svg" "${pkgdir}/usr/share/pixmaps/eclipse-cpp.svg"
|
2016-02-16 06:06:52 +08:00
|
|
|
|
|
|
|
# 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"
|
2016-08-19 22:20:15 +08:00
|
|
|
depends+=('php')
|
2016-02-16 06:06:52 +08:00
|
|
|
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
|
|
|
|
|
2016-08-19 22:20:15 +08:00
|
|
|
# install .desktop and svg
|
2016-02-16 06:06:52 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse-php.desktop" "${pkgdir}/usr/share/applications/eclipse-php.desktop"
|
2016-08-19 22:20:15 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse.svg" "${pkgdir}/usr/share/pixmaps/eclipse-php.svg"
|
2016-02-16 06:06:52 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2016-08-19 22:20:15 +08:00
|
|
|
# install .desktop and svg
|
2016-03-03 01:19:30 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse-jee.desktop" "${pkgdir}/usr/share/applications/eclipse-jee.desktop"
|
2016-08-19 22:20:15 +08:00
|
|
|
install -Dm644 "${srcdir}/eclipse.svg" "${pkgdir}/usr/share/pixmaps/eclipse-jee.svg"
|
2016-03-03 01:19:30 +08:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
}
|
2018-01-08 05:10:39 +08:00
|
|
|
|
|
|
|
package_eclipse-javascript() {
|
|
|
|
conflicts=('eclipse')
|
|
|
|
provides=('eclipse')
|
|
|
|
pkgdesc+=" - javascript"
|
|
|
|
cd ${srcdir}
|
|
|
|
|
|
|
|
# create directories
|
|
|
|
install -dm755 "${pkgdir}"/usr/{share/{applications,eclipse-javascript,licenses/eclipse-javascript},bin}
|
|
|
|
|
|
|
|
# install bin symlink
|
|
|
|
install -D eclipse.sh ${pkgdir}/usr/bin/eclipse-javascript
|
|
|
|
sed -i s!'/usr/share/eclipse'!'/usr/share/eclipse-javascript'! \
|
|
|
|
${pkgdir}/usr/bin/eclipse-javascript
|
|
|
|
|
|
|
|
# install .desktop and svg
|
|
|
|
install -Dm644 "${srcdir}/eclipse-javascript.desktop" "${pkgdir}/usr/share/applications/eclipse-javascript.desktop"
|
|
|
|
install -Dm644 "${srcdir}/eclipse.svg" "${pkgdir}/usr/share/pixmaps/eclipse-javascript.svg"
|
|
|
|
|
|
|
|
# install eclipse
|
|
|
|
cp -ar "${srcdir}/eclipse-javascript" "${pkgdir}/usr/share/"
|
|
|
|
|
|
|
|
# license
|
|
|
|
cp -a "${srcdir}/epl-v10.html" "${pkgdir}/usr/share/licenses/eclipse-javascript/epl-v10.html"
|
|
|
|
}
|