mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 00:44:38 +08:00
43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# $Id$
|
|
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
|
|
pkgname=eclipse-ecj
|
|
pkgver=4.4
|
|
pkgrel=1
|
|
_date=201406061215
|
|
pkgdesc='Eclipse java bytecode compiler'
|
|
arch=('any')
|
|
license=('EPL')
|
|
url='http://www.eclipse.org/'
|
|
depends=('java-runtime')
|
|
makedepends=('apache-ant' 'java-environment')
|
|
source=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/ecjsrc-${pkgver}.jar
|
|
01-ecj-include-props.patch
|
|
02-buildxml-fix-manifest.patch
|
|
ecj)
|
|
sha256sums=('429a65013ae9740e4f05451f8e2968b389ec04ef2c7178ccfa5ef6714488fd12'
|
|
'8f6259c76dfe493549bbaec3c8a7ba29e82c70e127c918adca28737dcb570f6b'
|
|
'5ca6bd94c2b1cb4c6f116d38c160edf1c4ca520647ac74b26486f958254767af'
|
|
'63aff3d126243d303ddc4305cfa77827df72e87ccf85bd8a22a2f832357e396c')
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
patch -p0 -i "$srcdir/01-ecj-include-props.patch"
|
|
patch -p0 -i "$srcdir/02-buildxml-fix-manifest.patch"
|
|
|
|
sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml
|
|
|
|
LANG=en_US.UTF-8
|
|
ant build
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "${srcdir}/ecj.jar" "${pkgdir}/usr/share/java/eclipse-ecj-${pkgver}.jar"
|
|
ln -s eclipse-ecj-${pkgver}.jar "${pkgdir}/usr/share/java/ecj.jar"
|
|
ln -s eclipse-ecj-${pkgver}.jar "${pkgdir}/usr/share/java/eclipse-ecj.jar"
|
|
install -Dm755 ecj "${pkgdir}/usr/bin/ecj"
|
|
install -D -m 644 ecj.1 "${pkgdir}/usr/share/man/man1/ecj.1"
|
|
}
|