mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# $Id$
|
|
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
|
|
|
|
# ALARM: Thomas Laroche <tho.laroche@gmail.com>
|
|
# - removed download choice based on architecture, this is always recompiled from source
|
|
|
|
pkgname=swt
|
|
# http://download.eclipse.org/eclipse/downloads/drops4
|
|
pkgver=4.5
|
|
pkgrel=1
|
|
_date=201506032000
|
|
pkgdesc='An open source widget toolkit for Java'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.eclipse.org/swt/'
|
|
license=('EPL')
|
|
depends=('java-runtime>=6' 'gtk2>=2.20.1' 'libxtst')
|
|
optdepends=('libgnomeui' 'glu' 'webkitgtk2')
|
|
makedepends=('java-environment' 'libxtst' 'glu' 'libgnomeui' 'unzip' 'pkgconfig' 'webkitgtk2' 'apache-ant')
|
|
source=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip
|
|
build-swt.xml)
|
|
sha256sums=('180cf993af914726e6da9abe669a636b057e9353058e76be7644b31955feb00e'
|
|
'6bb48007a95e3d8c6b577cc9cc4b61a51ce928b04f4fcd393cf72f8f727fe923')
|
|
|
|
# These examples don't even run anymore (Try Tux Guitar instead)!
|
|
# http://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse
|
|
# http://download.eclipse.org/eclipse/downloads/
|
|
|
|
# http://mirror.ibcp.fr/pub/eclipse/eclipse/downloads/drops4/R-4.4-201406061215/org.eclipse.sdk.examples.source-4.4.zip
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
unzip -oq src.zip -d src
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/default
|
|
. /etc/profile.d/apache-ant.sh
|
|
|
|
# Shared objects
|
|
cd src
|
|
./build.sh
|
|
|
|
# SWT jar
|
|
ant -f ../build-swt.xml compile
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/src
|
|
|
|
# Shared objects
|
|
export OUTPUT_DIR=${pkgdir}/usr/lib
|
|
install -dm755 ${OUTPUT_DIR}
|
|
make -f make_linux.mak install
|
|
|
|
# SWT jar
|
|
ant -f ../build-swt.xml jar
|
|
install -Dm755 ../swt.jar ${pkgdir}/usr/share/java/swt-${pkgver}.jar
|
|
ln -s swt-${pkgver}.jar ${pkgdir}/usr/share/java/swt.jar
|
|
}
|