mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
java-openjfx: try to update
This commit is contained in:
parent
4734397d8e
commit
a6994e63f9
1 changed files with 67 additions and 146 deletions
|
@ -1,7 +1,6 @@
|
|||
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
|
||||
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk> (https://aur.archlinux.org/account/Freso)
|
||||
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
|
||||
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||
# Contributor: Frederik Schwan <freswa at archlinux dot org> (https://aur.archlinux.org/account/freswa)
|
||||
# Contributor: Frederik Schwan <freswa at archlinux dot org>
|
||||
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
|
||||
# Contributor: Guillaume Alaux <guillaume@archlinux.org>
|
||||
# Contributor: William Gathoye <william + archlinux at gathoye dot be>
|
||||
|
@ -11,89 +10,72 @@
|
|||
# Contributor: Jens Kapitza <j dot kapitza at schwarze-allianz dot de>
|
||||
# Contributor: Olli <olli at coderkun dot de>
|
||||
|
||||
pkgbase="java-openjfx"
|
||||
pkgbase=java-openjfx
|
||||
pkgname=(
|
||||
"java-openjfx"
|
||||
"java-openjfx-license"
|
||||
# "java-openjfx-doc"
|
||||
# "java-openjfx-src"
|
||||
java-openjfx
|
||||
java-openjfx-doc
|
||||
java-openjfx-src
|
||||
)
|
||||
pkgver=22.0.2.u4
|
||||
pkgrel=2
|
||||
pkgdesc="Java OpenJFX client application platform (open-source implementation of JavaFX) - version following latest major Arch Linux OpenJDK java release."
|
||||
arch=(
|
||||
"x86_64"
|
||||
"x86_64_v3"
|
||||
)
|
||||
url="https://wiki.openjdk.java.net/display/OpenJFX/Main"
|
||||
pkgrel=0
|
||||
pkgdesc="Java OpenJFX client application platform (open-source implementation of JavaFX) - latest version"
|
||||
arch=(x86_64 x86_64_v3)
|
||||
url=https://wiki.openjdk.java.net/display/OpenJFX/Main
|
||||
license=('GPL-2.0-only WITH Classpath-exception-2.0')
|
||||
makedepends=(
|
||||
"alsa-lib"
|
||||
"ant"
|
||||
"cairo"
|
||||
"cmake"
|
||||
"ffmpeg4.4"
|
||||
"freetype2"
|
||||
"gdk-pixbuf2"
|
||||
"glib2"
|
||||
"gperf"
|
||||
"gradle<9"
|
||||
"gtk2"
|
||||
"gtk3"
|
||||
"java-environment-openjdk=$(("${pkgver%%.*}"-1))" # Needs older version of jdk-openjdk.
|
||||
# "java-environment-openjdk=${pkgver%%.*}"
|
||||
"libgl"
|
||||
"libx11"
|
||||
"libxtst"
|
||||
"libxxf86vm"
|
||||
"pango"
|
||||
"perl"
|
||||
"python"
|
||||
"qt5-base"
|
||||
"ruby"
|
||||
"unzip"
|
||||
# "webkit2gtk"
|
||||
"zip"
|
||||
alsa-lib
|
||||
ant
|
||||
cairo
|
||||
cmake
|
||||
ffmpeg4.4
|
||||
freetype2
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
gperf
|
||||
'gradle<9'
|
||||
gtk2
|
||||
gtk3
|
||||
java-environment-openjdk=$((${pkgver%%.*}-1))
|
||||
libgl
|
||||
libx11
|
||||
libxtst
|
||||
libxxf86vm
|
||||
pango
|
||||
perl
|
||||
python
|
||||
qt5-base
|
||||
ruby
|
||||
unzip
|
||||
webkit2gtk
|
||||
zip
|
||||
)
|
||||
options=(!lto)
|
||||
source=(
|
||||
"java-openjfx-${pkgver//.u/+}.tar.gz::https://github.com/openjdk/jfx${pkgver%%.*}u/archive/refs/tags/${pkgver//.u/+}.tar.gz"
|
||||
"gradle.properties"
|
||||
"java-openjfx-flags.patch"
|
||||
"${pkgbase}-${pkgver//.u/+}.tar.gz::https://github.com/openjdk/jfx${pkgver%%.*}u/archive/refs/tags/${pkgver//.u/+}.tar.gz"
|
||||
gradle.properties
|
||||
java-openjfx-flags.patch
|
||||
)
|
||||
b2sums=('d744b8d2018ff69d1356d9381d1541ecc69dc5ff3c92aea7a3ed1992d7b2b146fb68371fa8c4b8b20532a9077ef64350a769885bbb454316c35e6775c8e7f4c6'
|
||||
'0c023ef99e7ee600710c54dad0ad59070620595109ca42c5057fa2ab74ef6d244631745f5cd4c1bea9c0321ee69f1e1efaab820ff124ad1d4f453121e77fd14f'
|
||||
'a77fd8814a5978827de01a652f7b945f3439df04606434ced8998c8d77a82985292490e6965299aeb52f9da3d8069b4091d75519bd4ec8a15f70bc6d28b13498'
|
||||
'5b6dafc22995b57564fda89aaedeb2b6ee58b2c635336ac43a123ea4ac6ced3a20eba39d99cc4eb7ec7b29fc7541f5c3bee454ee55ca79fd2d7ce5ef4ed65cd3')
|
||||
|
||||
_jfxdir="jfx${pkgver%%.*}u-${pkgver//.u/-}"
|
||||
_jfxdir=jfx${pkgver%%.*}u-${pkgver//.u/-}
|
||||
|
||||
prepare() {
|
||||
cd "${_jfxdir}"
|
||||
cd $_jfxdir
|
||||
|
||||
# Clean from potential previous runs
|
||||
gradle --stop
|
||||
rm -rf build
|
||||
#gradle clean
|
||||
|
||||
ln -svf ../gradle.properties .
|
||||
patch -Np1 --follow-symlinks -i ../java-openjfx-flags.patch
|
||||
ln -sf ../gradle.properties .
|
||||
patch -Np1 -i ../java-openjfx-flags.patch
|
||||
sed 's|, "-Werror"||g' -i buildSrc/linux.gradle
|
||||
}
|
||||
|
||||
build() {
|
||||
# Work around build failure due to warnings treated as error.
|
||||
_FIXWERROR="-Wno-error=incompatible-pointer-types"
|
||||
CFLAGS=" ${_FIXWERROR}"
|
||||
CXXFLAGS=" ${_FIXWERROR}"
|
||||
export CFLAGS
|
||||
export CXXFLAGS
|
||||
|
||||
# Suppress errors with lld >= 17 due to undefined symbols.
|
||||
_FIXLDERROR="-Wl,--undefined-version"
|
||||
LDFLAGS+=" ${_FIXLDERROR}"
|
||||
export LDFLAGS
|
||||
|
||||
cd "${_jfxdir}"
|
||||
cd $_jfxdir
|
||||
|
||||
# Build with openjdk-(current version minus 1)
|
||||
export PATH="/usr/lib/jvm/java-$((${pkgver%%.*}-1))-openjdk/bin/:$PATH"
|
||||
|
@ -108,103 +90,42 @@ build() {
|
|||
}
|
||||
|
||||
package_java-openjfx() {
|
||||
pkgdesc="Java OpenJFX client application platform (open-source implementation of JavaFX) - latest release version."
|
||||
depends=(
|
||||
"freetype2"
|
||||
"glib2"
|
||||
"glibc"
|
||||
"java-runtime-openjdk=${pkgver%%.*}"
|
||||
"java-openjfx-license=${pkgver%%.*}"
|
||||
"libgl"
|
||||
"libx11"
|
||||
"libxtst"
|
||||
java-runtime-openjdk=${pkgver%%.*}
|
||||
libgl
|
||||
libx11
|
||||
libxtst
|
||||
)
|
||||
optdepends=(
|
||||
'ffmpeg4.4: Media support'
|
||||
'gtk2: GTK2 support'
|
||||
'gtk3: GTK3 support'
|
||||
#'webkit2gtk: Web support'
|
||||
'java-openjfx-doc: For documentation of this software.'
|
||||
'java-openjfx-src: For the source code of this software.'
|
||||
)
|
||||
provides=(
|
||||
"java-openjfx=${pkgver%%.*}"
|
||||
"java-openjfx=${pkgver}"
|
||||
'ffmpeg4.4: Media support',
|
||||
'gtk2: GTK2 support',
|
||||
'gtk3: GTK3 support',
|
||||
'webkit2gtk: Web support'
|
||||
)
|
||||
provides=(java-openjfx=${pkgver%%.*})
|
||||
|
||||
cd "${_jfxdir}"
|
||||
cd $_jfxdir
|
||||
|
||||
install -dvm 755 "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
|
||||
cp -dvr --no-preserve=ownership build/sdk/lib "${pkgdir}/usr/lib/jvm/java-${pkgver%%.*}-openjdk"/
|
||||
cp -dvr --no-preserve=ownership build/jmods "${pkgdir}/usr/lib/jvm/java-${pkgver%%.*}-openjdk"/
|
||||
|
||||
ln -sv java-openjfx "${pkgdir}/usr/share/licenses/${pkgname}" # TODO: If this package is (re)named to `java-openjfx` only, then remove this line.
|
||||
}
|
||||
|
||||
|
||||
package_java-openjfx-license() {
|
||||
pkgdesc="License for Java OpenJFX client application platform (open-source implementation of JavaFX) - version following latest major Arch Linux OpenJDK java release."
|
||||
arch=(
|
||||
"any"
|
||||
)
|
||||
optdepends=(
|
||||
"java-openjfx=${pkgver%%.*}: The software this license is for."
|
||||
)
|
||||
provides=(
|
||||
"${pkgname}=${pkgver%%.*}"
|
||||
)
|
||||
|
||||
cd "${_jfxdir}"
|
||||
|
||||
install -dvm 755 "${pkgdir}"/usr/share/licenses
|
||||
cp -dvr --no-preserve=ownership build/sdk/legal "${pkgdir}/usr/share/licenses/java-openjfx"
|
||||
install -vm 644 -t "${pkgdir}"/usr/share/licenses/java-openjfx ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION
|
||||
|
||||
ln -sv java-openjfx "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -dm 755 "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
|
||||
cp -dr --no-preserve=ownership build/sdk/lib "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/
|
||||
cp -dr --no-preserve=ownership build/jmods "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/
|
||||
cp -dr --no-preserve=ownership build/sdk/legal "${pkgdir}"/usr/share/licenses/java-openjfx
|
||||
}
|
||||
|
||||
package_java-openjfx-doc() {
|
||||
pkgdesc="Documentation for Java OpenJFX client application platform (open-source implementation of JavaFX) - version following latest major Arch Linux OpenJDK java release."
|
||||
arch=(
|
||||
"any"
|
||||
)
|
||||
depends=(
|
||||
"java-openjfx-license=${pkgver%%.*}"
|
||||
)
|
||||
optdepends=(
|
||||
"java-openjfx=${pkgver%%.*}: The software this documentation is for."
|
||||
)
|
||||
provides=(
|
||||
"${pkgname}=${pkgver%%.*}"
|
||||
)
|
||||
arch=(any)
|
||||
cd $_jfxdir
|
||||
|
||||
cd "${_jfxdir}"
|
||||
|
||||
install -dvm 755 "${pkgdir}"/usr/share/{doc,licenses}
|
||||
cp -dvr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java-openjfx
|
||||
install -vm 644 -t "${pkgdir}"/usr/share/doc/java-openjfx README.md UPDATING-VERSION.md WEBKIT-MEDIA-STUBS.md CONTRIBUTING.md
|
||||
|
||||
ln -sv java-openjfx "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -dm 755 "${pkgdir}"/usr/share/{doc,licenses}
|
||||
cp -dr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java-openjfx
|
||||
ln -s java-openjfx "${pkgdir}"/usr/share/licenses/java-openjfx-doc
|
||||
}
|
||||
|
||||
package_java-openjfx-src() {
|
||||
pkgdesc="Source code for Java OpenJFX client application platform (open-source implementation of JavaFX) - version following latest major Arch Linux OpenJDK java release."
|
||||
arch=(any)
|
||||
depends=(
|
||||
"java-openjfx-license=${pkgver%%.*}"
|
||||
)
|
||||
optdepends=(
|
||||
"java-openjfx=${pkgver%%.*}: The software this source code is for."
|
||||
)
|
||||
provides=(
|
||||
"${pkgname}=${pkgver%%.*}"
|
||||
)
|
||||
cd $_jfxdir
|
||||
|
||||
cd "${_jfxdir}"
|
||||
|
||||
install -dvm 755 "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
|
||||
install -vm 644 build/sdk/src.zip "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/javafx-src.zip
|
||||
|
||||
ln -sv java-openjfx "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -dm 755 "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
|
||||
install -m 644 build/sdk/src.zip "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/javafx-src.zip
|
||||
ln -s java-openjfx "${pkgdir}"/usr/share/licenses/java-openjfx-src
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue