linux arch 包管理,Archlinux使用包管理方式安装MyEclipse
該樓層疑似違規已被系統折疊?隱藏此樓查看此樓
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
}
總結
以上是生活随笔為你收集整理的linux arch 包管理,Archlinux使用包管理方式安装MyEclipse的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: web获取多行mysql结果_mysql
- 下一篇: dla.exe是什么进程 dla进程有什