1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
3 # Contributor: Maxime Gauduin <alucryd@archlinux.org>
4 # Contributor: Guillaume Alaux <guillaume@archlinux.org>
5 # Contributor: William Gathoye <william+archlinux@gathoye.be>
6 # Contributor: Emanuel Couto <emanuel.amaral.couto@gmail.com>
7 # Contributor: Richard Jackson <rdjack21@gmail.com>
8 # Contributor: Tinx <arch@tinx.eu>
9 # Contributor: Jens Kapitza <j.kapitza@schwarze-allianz.de>
10 # Contributor: Olli <olli@coderkun.de>
12 pkgbase=java11-openjfx
20 pkgdesc='Java OpenJFX 11 client application platform (open-source implementation of JavaFX)'
22 url=https://wiki.openjdk.java.net/display/OpenJFX/Main
37 java-environment-openjdk=11
49 ${pkgname}-${pkgver}.tar.gz::https://github.com/openjdk/jfx11u/archive/refs/tags/${pkgver//.u/+}.tar.gz
51 java11-openjfx-flags.patch
52 java11-openjfx-no-xlocale.patch
53 java11-openjfx-gstreamer-lite-gcc10-compat.patch
55 b2sums=('7711c39a5c85a7cf1e7e39b6e0972dac9fc1f517f55fd52cd43b36b1cad7bceb212040946f7d3ad86096694b627529e74c4e9eb859a59767c2861eee6fe2661c'
56 'a77fd8814a5978827de01a652f7b945f3439df04606434ced8998c8d77a82985292490e6965299aeb52f9da3d8069b4091d75519bd4ec8a15f70bc6d28b13498'
57 '191de086c12e4ae8fd901a06c6382891544d1a336c51dbd491c76c0ecff808c042a2117e3f25239768809a38cceddcb17c32331715cc2bbdd057fe307b908df3'
58 '13216615c01b8d48d17889ffa22668c38568870d83ab30c542eb5b5620db305f02efb1acb99d9b5e89eb0a73a134bb336cb301f4de4e8855cae50efb099e384e'
59 '119fa1cc5da2cdefa22bbe9b6f76581faa74e05fa7b6e5576470fc0251c6e257f122fbba03754cc01f7c7251145cfa1cab4ffc2f9d59ff0c175a121e943a0f64')
62 cd jfx11u-${pkgver//.u/-}
64 ln -sf ../gradle.properties .
65 patch -Np1 -i ../java11-openjfx-flags.patch
66 patch -Np1 -i ../java11-openjfx-no-xlocale.patch
67 patch -Np1 -i ../java11-openjfx-gstreamer-lite-gcc10-compat.patch
71 cd jfx11u-${pkgver//.u/-}
73 # build against ffmpeg4.4
74 export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
79 package_java11-openjfx() {
81 java-runtime-openjdk=11
87 'ffmpeg4.4: Media support',
90 'webkit2gtk: Web support'
92 provides=('java-openjfx=11')
94 cd jfx11u-${pkgver//.u/-}
96 install -dm 755 "${pkgdir}"/usr/{lib/jvm/java-11-openjfx,share/licenses}
97 cp -dr --no-preserve=ownership build/sdk/lib "${pkgdir}"/usr/lib/jvm/java-11-openjfx/
98 rm "${pkgdir}"/usr/lib/jvm/java-11-openjfx/lib/src.zip
99 cp -dr --no-preserve=ownership build/jmods "${pkgdir}"/usr/lib/jvm/java-11-openjfx/
100 cp -dr --no-preserve=ownership build/sdk/legal "${pkgdir}"/usr/share/licenses/java11-openjfx
103 package_java11-openjfx-doc() {
104 cd jfx11u-${pkgver//.u/-}
106 install -dm 755 "${pkgdir}"/usr/share/{doc,licenses}
107 cp -dr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java11-openjfx
108 ln -s java11-openjfx "${pkgdir}"/usr/share/licenses/java11-openjfx-doc
111 package_java11-openjfx-src() {
112 cd jfx11u-${pkgver//.u/-}
114 install -dm 755 "${pkgdir}"/usr/{lib/jvm/java-11-openjfx,share/licenses}
115 install -m 644 build/sdk/lib/src.zip "${pkgdir}"/usr/lib/jvm/java-11-openjfx/javafx-src.zip
116 ln -s java11-openjfx "${pkgdir}"/usr/share/licenses/java11-openjfx-src