archrelease: copy trunk to extra-x86_64
[arch-packages.git] / java11-openjfx / repos / extra-x86_64 / PKGBUILD
blob1e040f81bf28109dbc9ecf128d9414fa3a521cb4
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
13 pkgname=(
14   java11-openjfx
15   java11-openjfx-doc
16   java11-openjfx-src
18 pkgver=11.0.16.u2
19 pkgrel=1
20 pkgdesc='Java OpenJFX 11 client application platform (open-source implementation of JavaFX)'
21 arch=(x86_64)
22 url=https://wiki.openjdk.java.net/display/OpenJFX/Main
23 license=(custom)
24 makedepends=(
25   alsa-lib
26   ant
27   cairo
28   cmake
29   ffmpeg4.4
30   freetype2
31   gdk-pixbuf2
32   glib2
33   gperf
34   gradle
35   gtk2
36   gtk3
37   java-environment-openjdk=11
38   libgl
39   libx11
40   libxtst
41   pango
42   python
43   ruby
44   unzip
45   webkit2gtk
46   zip
48 source=(
49   ${pkgname}-${pkgver}.tar.gz::https://github.com/openjdk/jfx11u/archive/refs/tags/${pkgver//.u/+}.tar.gz
50   gradle.properties
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')
61 prepare() {
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
70 build() {
71   cd jfx11u-${pkgver//.u/-}
73   # build against ffmpeg4.4
74   export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
76   gradle zips
79 package_java11-openjfx() {
80   depends=(
81     java-runtime-openjdk=11
82     libgl
83     libx11
84     libxtst
85   )
86   optdepends=(
87     'ffmpeg4.4: Media support',
88     'gtk2: GTK2 support',
89     'gtk3: GTK3 support',
90     'webkit2gtk: Web support'
91   )
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
119 # vim: ts=2 sw=2 et: