mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
69 lines
2.7 KiB
Bash
69 lines
2.7 KiB
Bash
# $Id$
|
|
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - source changes for ARM
|
|
|
|
pkgname=swt
|
|
# http://download.eclipse.org/eclipse/downloads/drops4
|
|
pkgver=4.6.1
|
|
pkgrel=1
|
|
_date=201609071200
|
|
pkgdesc='An open source widget toolkit for Java'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.eclipse.org/swt/'
|
|
license=('EPL')
|
|
depends=('java-runtime>=7' 'gtk2>=2.20.1' 'libxtst')
|
|
optdepends=('libgnomeui' 'glu' 'webkitgtk2')
|
|
makedepends=('java-environment=8' 'libxtst' 'glu' 'libgnomeui' 'unzip' 'pkgconfig' 'webkitgtk2' 'apache-ant')
|
|
|
|
source=(build-swt.xml)
|
|
source_i686=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip)
|
|
source_x86_64=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86_64.zip)
|
|
source_arm=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip)
|
|
source_armv6h=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip)
|
|
source_armv7h=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86.zip)
|
|
source_aarch64=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86_64.zip)
|
|
|
|
sha256sums=('3d30fbde25a6a6d260d04cb1782b7618c2a0a926440935a9eea516146eb0e1e1')
|
|
sha256sums_i686=('3f1855232110d22d3b44dc9384e8b669ce07ac057f7bfad1f1557218d85f04ab')
|
|
sha256sums_x86_64=('6ddcc02ea23bec704bbbea60b96f272258eb24c6d3b05197d50a25821cd415d8')
|
|
sha256sums_arm=('3f1855232110d22d3b44dc9384e8b669ce07ac057f7bfad1f1557218d85f04ab')
|
|
sha256sums_armv6h=('3f1855232110d22d3b44dc9384e8b669ce07ac057f7bfad1f1557218d85f04ab')
|
|
sha256sums_armv7h=('3f1855232110d22d3b44dc9384e8b669ce07ac057f7bfad1f1557218d85f04ab')
|
|
sha256sums_aarch64=('6ddcc02ea23bec704bbbea60b96f272258eb24c6d3b05197d50a25821cd415d8')
|
|
|
|
# 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/java-8-openjdk
|
|
|
|
# Shared objects
|
|
cd src
|
|
./build.sh
|
|
|
|
# SWT jar
|
|
. /etc/profile.d/apache-ant.sh
|
|
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
|
|
}
|