Created
September 25, 2017 08:00
-
-
Save anonymous/c5a4780604949256c4ee146403f8826d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "org.freedesktop.Sdk.Extension.openjdk-18", | |
"branch": "1.6", | |
"runtime": "org.freedesktop.Sdk", | |
"build-extension": true, | |
"sdk": "org.freedesktop.Sdk", | |
"runtime-version": "1.6", | |
"sdk-extensions": [], | |
"separate-locales": false, | |
"cleanup": [ "/share/info", "/share/man" ], | |
"build-options" : { | |
"cflags": "-O2 -g", | |
"cxxflags": "-O2 -g", | |
"prefix": "/usr/lib/sdk/openjdk-18", | |
"env": { | |
"V": "1" | |
} | |
}, | |
"modules": [ | |
{ | |
"name": "bin-java", | |
"cleanup": [ "*" ], | |
"buildsystem": "simple", | |
"sources": [ | |
{ | |
"type": "archive", | |
"only-arches": ["i386"], | |
"url": "http://anduin.linuxfromscratch.org/BLFS/OpenJDK/OpenJDK-1.8.0.141/OpenJDK-1.8.0.141-i686-bin.tar.xz", | |
"sha256": "x" | |
}, | |
{ | |
"type": "archive", | |
"only-arches": ["x86_64"], | |
"url": "http://anduin.linuxfromscratch.org/BLFS/OpenJDK/OpenJDK-1.8.0.141/OpenJDK-1.8.0.141-x86_64-bin.tar.xz", | |
"sha256": "40051afdb57ed798a910ff5b1a5bbef555481bcf76f0423686861da983871e7d" | |
} | |
], | |
"build-commands": [ | |
"mkdir -p $FLATPAK_DEST/bin-java", | |
"cp -dr * $FLATPAK_DEST/bin-java" | |
] | |
}, | |
{ | |
"name": "java", | |
"buildsystem": "autotools", | |
"no-parallel-make": true, | |
"config-opts": [ | |
"--with-boot-jdk=/usr/lib/sdk/openjdk-18/bin-java", | |
"--with-update-version=141", | |
"--with-build-number=b15", | |
"--with-milestone=flpk", | |
"--enable-unlimited-crypto", | |
"--with-zlib=system", | |
"--with-stdc++lib=dynamic", | |
"--with-giflib=system", | |
"--with-extra-cflags=-std=c++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse", | |
"--with-extra-cxxflags=-std=c++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" | |
], | |
"make-args": [ | |
"DEBUG_BINARIES=true", | |
"SCTP_WERROR=" | |
], | |
"sources": [ | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk8u141-b15.tar.bz2", | |
"sha256": "2fe8e1e3c7e78e1d77aece58399845cb9205e2f617a6ddbb12063a0858c1f241" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/corba/archive/jdk8u141-b15.tar.bz2", | |
"dest": "corba", | |
"sha256": "75dd8a805ad88e3570612feb0f5e3582e9fdf3aa560ea13e9ca56860456bbb08" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/archive/jdk8u141-b15.tar.bz2", | |
"dest": "hotspot", | |
"sha256": "cfe053c47c2f30fb0b208715b3ee6c8ec06641af75bc85ec3148e50a405e4405" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/jaxp/archive/jdk8u141-b15.tar.bz2", | |
"dest": "jaxp", | |
"sha256": "ef9001c0a529ccef7fc344224b0e17e314c9e17336ea6aeb0c032e41cbbcd792" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws/archive/jdk8u141-b15.tar.bz2", | |
"dest": "jaxws", | |
"sha256": "bcf56849e0e96150450a851d5327b7caca282fe2c1bea333bb7acadcb76273ab" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/archive/jdk8u141-b15.tar.bz2", | |
"dest": "langtools", | |
"sha256": "42544d52e0384cf6d1b418b9a81025f2f058cdb97eaa1f86b0c1bdbf6e4bbf81" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/archive/jdk8u141-b15.tar.bz2", | |
"dest": "jdk", | |
"sha256": "bfecd4913b7798221e346c99416f098c4e31b428377dd181cd5d5ce67030277b" | |
}, | |
{ | |
"type": "archive", | |
"url": "http://hg.openjdk.java.net/jdk8u/jdk8u/nashorn/archive/jdk8u141-b15.tar.bz2", | |
"dest": "nashorn", | |
"sha256": "cd43168b6524db1fa1133efc88d1d281d863f6545c6fba456ab6d2a56f830465" | |
}, | |
{ | |
"type": "shell", | |
"commands": [ | |
"chmod a+x configure" | |
] | |
} | |
] | |
}, | |
{ | |
"name": "scripts", | |
"sources": [ | |
{ | |
"type": "script", | |
"commands": [ | |
"mkdir -p /app/jre", | |
"cp -ra /usr/lib/sdk/openjdk-18/jvm/openjdk-1.8.0_141-flpk/jre/* /app/jre/" | |
], | |
"dest-filename": "install.sh" | |
}, | |
{ | |
"type": "script", | |
"commands": [ | |
"export PATH=$PATH:/usr/lib/sdk/openjdk-18/bin" | |
], | |
"dest-filename": "enable.sh" | |
} | |
], | |
"buildsystem": "simple", | |
"build-commands": [ | |
"cp enable.sh install.sh /usr/lib/sdk/openjdk-18/" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment