该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
PKGBUILD:
# Maintainer: alex-no1
# Contributor: alex-no1
pkgname=myeclipse
_realname=eclipse
pkgver=11.0.1
_internal_pkgver=3.8.2
pkgrel=1
_date=201301310800
pkgdesc="An IDE for Java and other languages - 3.8 - simultaneously released with 4.2 Juno."
arch=('i686' 'x86_64')
url="贴*&吧#*删*@我*#贴"
license=('MPL')
depends=('java-environment' 'desktop-file-utils' 'gtk2' 'unzip' 'webkitgtk2' 'libxtst' 'python2')
provides=('eclipse=3.8.2' 'eclipse-emf=2.8.1' 'eclipse-gef=3.8.1' 'eclipse-wtp=3.4.1' 'eclipse-jee-birt=4.2.1' 'eclipse-ajdt=2.2.2')
conflicts=('xulrunner' 'eclipse' 'eclipse-emf' 'eclipse-gef' 'eclipse-wtp' 'eclipse-jee-birt' 'eclipse-ajdt')
install=${pkgname}.install
source=("eclipse.desktop"
"eclipse.ini.patch"
"eclipse.sh")
md5sums=('cdfccaa0ebc257cd62e4da74e9c5e3b9'
'808ab979cd5b150023d2ec3487cef6a3'
'7ea99a30fbaf06ec29261541b8eb1e23')
package() {
cd "${srcdir}/eclipse"
# patch to increase default memory limits
#patch -Np0 -i ${srcdir}/eclipse.ini.patch
# python2 fix
sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' \
plugins/org.apache.ant_1.8.3.v201301120609/bin/runant.py
# install eclipse
install -d -m755 ${pkgdir}/usr/share/${_realname}
cp -r * ${pkgdir}/usr/share/${_realname}/
# install bin file
install -d -m755 ${pkgdir}/usr/bin
install -m755 ${srcdir}/${_realname}.sh ${pkgdir}/usr/bin/${_realname}
# install icon and desktop files
install -d -m755 ${pkgdir}/usr/share/{applications,pixmaps}
install -m644 ${srcdir}/${_realname}.desktop ${pkgdir}/usr/share/applications/
install -m644 ${pkgdir}/usr/share/${_realname}/plugins/org.eclipse.sdk_${_internal_pkgver}.v${_date}/${_realname}48.png \
${pkgdir}/usr/share/pixmaps/${_realname}.png
}