SHOW:
|
|
- or go back to the newest paste.
| 1 | pkgname=eclipse-platform | |
| 2 | pkgver=4.2.1 | |
| 3 | _pkgbuild=201209141800 | |
| 4 | pkgrel=1 | |
| 5 | pkgdesc="Eclipse Platform without plug-ins and SDK (a minimal installation suitable for complete per-user customization with the built-in Eclipse package manager)" | |
| 6 | url="http://www.eclipse.org" | |
| 7 | arch=('i686' 'x86_64')
| |
| 8 | license=('EPL/1.1')
| |
| 9 | depends=('java-runtime' 'gtk2' 'unzip' 'libxtst' 'hicolor-icon-theme')
| |
| 10 | optdepends=('libwebkit: Internal browser component and tooltips')
| |
| 11 | conflicts=('eclipse')
| |
| 12 | provides=("eclipse=$pkgver")
| |
| 13 | install=eclipse-platform.install | |
| 14 | options=(!strip) | |
| 15 | ||
| 16 | source=( | |
| 17 | "http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops4/R-${pkgver}-${_pkgbuild}/eclipse-platform-${pkgver}-linux-gtk.tar.gz"
| |
| 18 | "eclipse.sh" | |
| 19 | "eclipse.svg" | |
| 20 | "eclipse.desktop" | |
| 21 | "eclipse.ini.patch" | |
| 22 | ) | |
| 23 | ||
| 24 | md5sums=( | |
| 25 | 'c0d887e56733081a9039119350e05769' | |
| 26 | '8dbd219db72d2c913f2e086f19a65770' | |
| 27 | 'a0f93d5e697837d75911f5af9a386f19' | |
| 28 | '73c5c6ad00c72888080ff3cde413942f' | |
| 29 | '3038cf6de788617aca33f94492c07dc1' | |
| 30 | ) | |
| 31 | ||
| 32 | if [ "$CARCH" = "x86_64" ]; then | |
| 33 | source[0]="http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops4/R-${pkgver}-${_pkgbuild}/eclipse-platform-${pkgver}-linux-gtk-x86_64.tar.gz"
| |
| 34 | md5sums[0]='81c36444fb62e9b3870c9946689f75f6' | |
| 35 | fi | |
| 36 | ||
| 37 | build() {
| |
| 38 | cd "${srcdir}/eclipse"
| |
| 39 | ||
| 40 | patch -Np1 -i "${srcdir}/eclipse.ini.patch"
| |
| 41 | ||
| 42 | install -d ${pkgdir}/usr/bin ${pkgdir}/usr/lib ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48}/apps
| |
| 43 | ||
| 44 | install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
| |
| 45 | install -m644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/"
| |
| 46 | mv "${srcdir}/eclipse" "${pkgdir}/usr/share/"
| |
| 47 | ||
| 48 | - | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_pkgbuild}/eclipse.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png"
|
| 48 | + | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png"
|
| 49 | - | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_pkgbuild}/eclipse32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png"
|
| 49 | + | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png"
|
| 50 | - | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_pkgbuild}/eclipse48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png"
|
| 50 | + | ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png"
|
| 51 | ||
| 52 | install -Dm644 ${srcdir}/eclipse.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/eclipse.svg
| |
| 53 | } |