archrelease: copy trunk to extra-x86_64
[arch-packages.git] / java8-openjfx / trunk / PKGBUILD
blobcd29f3e42c143bf8f1325cb7b2a2ed4f1dd082bb
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>
10 pkgbase=java8-openjfx
11 pkgname=(
12   java8-openjfx
13   java8-openjfx-doc
14   java8-openjfx-src
16 pkgver=8.u202
17 pkgrel=3
18 pkgdesc='Java OpenJFX 8 client application platform (open-source implementation of JavaFX)'
19 arch=(x86_64)
20 url=https://wiki.openjdk.java.net/display/OpenJFX/Main
21 license=(GPL)
22 makedepends=(
23   alsa-lib
24   cairo
25   cmake
26   ffmpeg
27   freetype2
28   gdk-pixbuf2
29   glib2
30   gperf
31   gtk2
32   gtk3
33   java-environment-openjdk=8
34   libgl
35   libx11
36   libxtst
37   pango
38   python2
39   qt5-base
40   ruby
41   unzip
42   webkit2gtk
44 source=(
45   https://hg.openjdk.java.net/openjfx/8u/rt/archive/${pkgver//./}-ga.tar.bz2
46   gradle.properties
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')
57 prepare() {
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
65 build() {
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() {
74   depends=(
75     alsa-lib
76     cairo
77     ffmpeg
78     gdk-pixbuf2
79     glib2
80     gtk2
81     gtk3
82     java-runtime-openjdk=8
83     libavcodec.so
84     libavformat.so
85     libfreetype.so
86     libgl
87     libx11
88     libxtst
89     pango
90     python2
91     qt5-base
92     ruby
93     unzip
94     webkit2gtk
95   )
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/
117 # vim: ts=2 sw=2 et: