mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 01:42:13 +08:00
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
pkgname=swt-extra
|
|
pkgver=4.5
|
|
pkgrel=1
|
|
_date=201506032000
|
|
pkgdesc='An open source widget toolkit for Java'
|
|
arch=('x86_64')
|
|
url='http://www.eclipse.org/swt/'
|
|
license=('EPL')
|
|
depends=('java-runtime>=7' 'gtk2>=2.20.1' 'libxtst')
|
|
optdepends=('mesa' 'glu' 'libwebkit-gtk2')
|
|
makedepends=('java-environment' 'libxtst' 'mesa' 'glu' 'unzip' 'pkgconfig' 'libwebkit-gtk2' 'apache-ant')
|
|
source=(http://archive.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86_64.zip
|
|
build-swt.xml)
|
|
sha256sums=('ce89cb9dea5bef927873cbc377a81b5d9f1995622e42402bd9600043a9bc00e3'
|
|
'6bb48007a95e3d8c6b577cc9cc4b61a51ce928b04f4fcd393cf72f8f727fe923')
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
unzip -oq src.zip -d src
|
|
|
|
. /etc/profile.d/openjdk.sh
|
|
. /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
|
|
}
|