Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : openjdk-11 | name : openjdk-11 | ||||
| version : 11.0.8 | version : 11.0.8 | ||||
| release : 1 | release : 2 | ||||
| source : | source : | ||||
| - http://hg.openjdk.java.net/jdk-updates/jdk11u/archive/jdk-11.0.8+5.tar.bz2 : 56fe2712180b6efe81bb0b9b1bbaf8abb27fc9b03213fefb91194e51a44b559f | - http://hg.openjdk.java.net/jdk-updates/jdk11u/archive/jdk-11.0.8+5.tar.bz2 : 56fe2712180b6efe81bb0b9b1bbaf8abb27fc9b03213fefb91194e51a44b559f | ||||
| - https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz : 99be79935354f5c0df1ad293620ea36d13f48ec3ea870c838f20c504c9668b57 | |||||
| license : GPL-2.0-with-classpath-exception | license : GPL-2.0-with-classpath-exception | ||||
| component : programming.java | component : programming.java | ||||
| summary : Open implementation of Oracle's Java Development Kit | summary : Open implementation of Oracle's Java Development Kit | ||||
| description: | | description: | | ||||
| Open implementation of Oracle's Java Development Kit | Open implementation of Oracle's Java Development Kit | ||||
| ccache : no | ccache : no | ||||
| builddeps : | builddeps : | ||||
| - pkgconfig(alsa) | - pkgconfig(alsa) | ||||
| - pkgconfig(fontconfig) | - pkgconfig(fontconfig) | ||||
| - pkgconfig(lcms2) | - pkgconfig(lcms2) | ||||
| - pkgconfig(libjpeg) | - pkgconfig(libjpeg) | ||||
| - pkgconfig(x11) | - pkgconfig(x11) | ||||
| - pkgconfig(xext) | - pkgconfig(xext) | ||||
| - pkgconfig(xrandr) | - pkgconfig(xrandr) | ||||
| - pkgconfig(xrender) | - pkgconfig(xrender) | ||||
| - pkgconfig(xt) | - pkgconfig(xt) | ||||
| - pkgconfig(xtst) | - pkgconfig(xtst) | ||||
| - cups-devel | - cups-devel | ||||
| - giflib-devel | - giflib-devel | ||||
| - openjdk-11-devel | |||||
| - p7zip | - p7zip | ||||
| setup : | | setup : | | ||||
| # Unpack prebuilt tarball for bootstrap | |||||
| tar xvzf $sources/openjdk-11.0.2_linux-x64_bin.tar.gz -C $workdir | |||||
| bash ./configure --prefix="$installdir/usr" \ | bash ./configure --prefix="$installdir/usr" \ | ||||
| --with-boot-jdk=$workdir/jdk-11.0.2 \ | --with-boot-jdk="/usr/lib64/openjdk-11" \ | ||||
| --with-version-build=10 \ | --with-version-build=10 \ | ||||
| --with-version-pre="" \ | --with-version-pre="" \ | ||||
| --with-version-opt="" \ | --with-version-opt="" \ | ||||
| --with-stdc++lib=dynamic \ | --with-stdc++lib=dynamic \ | ||||
| --with-giflib=system \ | --with-giflib=system \ | ||||
| --with-lcms=system \ | --with-lcms=system \ | ||||
| --with-libjpeg=system \ | --with-libjpeg=system \ | ||||
| --with-libpng=system \ | --with-libpng=system \ | ||||
| --with-zlib=system \ | --with-zlib=system \ | ||||
| --enable-unlimited-crypto \ | --enable-unlimited-crypto \ | ||||
| --disable-warnings-as-errors \ | --disable-warnings-as-errors \ | ||||
| --with-jobs=%YJOBS% \ | --with-jobs=%YJOBS% \ | ||||
| --with-extra-ldflags="$LDFLAGS" | --with-extra-ldflags="$LDFLAGS" | ||||
| build : | | build : | | ||||
| make images | make images | ||||
| install : | | install : | | ||||
| install -Ddm 00755 $installdir/%libdir% $installdir/usr/include/openjdk-11 $installdir/usr/share/man/man1 | install -Ddm 00755 $installdir/%libdir%/ | ||||
| mkdir -p $installdir/usr/include/openjdk-11/ $installdir/usr/share/applications/ | |||||
| make install | make install | ||||
| # Binaries | # Binaries | ||||
| mv $installdir/usr/jvm/openjdk-%version% $installdir/%libdir%/openjdk-11 | mv $installdir/usr/jvm/openjdk-%version% $installdir/%libdir%/openjdk-11/ | ||||
| rm -rf $installdir/usr/jvm | rm -rf $installdir/usr/jvm/ | ||||
| rm -rf $installdir/usr/bin | rm -rf $installdir/usr/bin/ | ||||
| # Headers | |||||
| cd build/linux-x86_64-normal-server-release/ | |||||
| cp -ar jdk/include/* $installdir/usr/include/openjdk-11/ | |||||
| # Symlink header files (because some apps look for them in $JAVA_HOME) | |||||
| ln -s /usr/include/openjdk-11/ $installdir/usr/lib64/openjdk-11/include/ | |||||
| # Headers and man pages | # Man pages | ||||
| cd build/linux-x86_64-normal-server-release | mv $installdir/usr/lib64/openjdk-11/man/ $installdir/usr/share/ | ||||
| cp -ar jdk/include/* $installdir/usr/include/openjdk-11/. | find $installdir/usr/share/man/ -type f -exec rename -- ".1" "-11.1" {} \; | ||||
| mv $installdir/usr/lib64/openjdk-11/man/man1/*.1 $installdir/usr/share/man/man1/ | # Remove pre-existing symlink first | ||||
| rm $installdir/usr/share/man/ja | |||||
| mv -f $installdir/usr/share/man/ja_JP.UTF-8/ $installdir/usr/share/man/ja/ | |||||
| # Add java-11-jar.desktop into usable apps | # Add java-11-jar.desktop into usable apps | ||||
| install -Dm 00644 $pkgfiles/java-11-jar.desktop $installdir/usr/share/applications/java-11-jar.desktop | install -Dm 00644 $pkgfiles/java-11-jar.desktop $installdir/usr/share/applications/ | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.