1 # Maintainer: Guillaume Alaux <guillaume@archlinux.org>
2 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 # Contributor: William Gathoye <william + archlinux at gathoye dot be>
4 # Contributor: Emanuel Couto <emanuel dot amaral dot couto at gmail dot com>
5 # Contributor: Richard Jackson <rdjack21 at gmail dot com>
6 # Contributor: Tinx <arch at tinx dot eu>
7 # Contributor: Jens Kapitza <j dot kapitza at schwarze-allianz dot de>
8 # Contributor: Olli <olli at coderkun dot de>
18 pkgdesc='Java OpenJFX 8 client application platform (open-source implementation of JavaFX)'
20 url=https://wiki.openjdk.java.net/display/OpenJFX/Main
33 java-environment-openjdk=8
45 https://hg.openjdk.java.net/openjfx/8u/rt/archive/${pkgver//./}-ga.tar.bz2
47 https://services.gradle.org/distributions/gradle-4.8-bin.zip
48 java8-openjfx-flags.patch
49 java8-openjfx-no-xlocale.patch
51 sha256sums=('12b0538d04c4bd451e4692ee06357ac36233ff4ec2af9fa3b9bbdbab48c3f2fc'
52 '75335ac8ccae143ab4dbb81fc32c70d34d95baa360388f55bf2d237e8821ad97'
53 'f3e29692a8faa94eb0b02ebf36fa263a642b3ae8694ef806c45c345b8683f1ba'
54 '867badaca506f130f918bdc620ae7ae5be8b176fcdfc91fef551b636d6390b19'
55 'b21f6b254acc7aa2124521b6521d3bdfdfcfd9b062624a84ef73608120957d0d')
58 cd rt-${pkgver//./}-ga
60 ln -sf ../gradle.properties .
61 patch -Np1 -i ../java8-openjfx-flags.patch
62 patch -Np1 -i ../java8-openjfx-no-xlocale.patch
66 cd rt-${pkgver//./}-ga
68 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
70 ../gradle-4.8/bin/gradle
73 package_java8-openjfx() {
82 java-runtime-openjdk=8
97 cd rt-${pkgver//./}-ga
99 install -dm 755 "${pkgdir}"/usr/lib/jvm/java-8-openjdk/jre
100 cp -dr --no-preserve=ownership build/sdk/{bin,lib} "${pkgdir}"/usr/lib/jvm/java-8-openjdk/
101 cp -dr --no-preserve=ownership build/sdk/rt/lib "${pkgdir}"/usr/lib/jvm/java-8-openjdk/jre/
104 package_java8-openjfx-doc() {
105 cd rt-${pkgver//./}-ga
107 install -dm 755 "${pkgdir}"/usr/share/doc
108 cp -dr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java8-openjfx
111 package_java8-openjfx-src() {
112 cd rt-${pkgver//./}-ga
114 install -Dm 644 build/javafx-src.zip -t "${pkgdir}"/usr/lib/jvm/java-8-openjdk/