91 lines
3.4 KiB
JSON
91 lines
3.4 KiB
JSON
{
|
|
"id": "org.freedesktop.Sdk.Extension.rust-120",
|
|
"branch": "1.6",
|
|
"runtime": "org.freedesktop.Sdk",
|
|
"build-extension": true,
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"runtime-version": "1.6",
|
|
"sdk-extensions": [],
|
|
"separate-locales": false,
|
|
"appstream-compose": false,
|
|
"cleanup": [ "/share/info", "/share/man" ],
|
|
"build-options" : {
|
|
"cflags": "-O2 -g",
|
|
"cxxflags": "-O2 -g",
|
|
"prefix": "/usr/lib/sdk/rust-120",
|
|
"env": {
|
|
"V": "1"
|
|
}
|
|
},
|
|
"modules": [
|
|
{
|
|
"name": "rust",
|
|
"buildsystem": "simple",
|
|
"cleanup": [
|
|
"/share/doc/rust/html"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"only-arches": ["i386"],
|
|
"url": "https://static.rust-lang.org/dist/rust-1.20.0-i686-unknown-linux-gnu.tar.gz",
|
|
"sha256": "abe592e06616cdc2fcca56ddbe482050dd49a1fada35e2af031c64fe6eb14668"
|
|
},
|
|
{
|
|
"type": "archive",
|
|
"only-arches": ["arm"],
|
|
"url": "https://static.rust-lang.org/dist/rust-1.20.0-arm-unknown-linux-gnueabihf.tar.gz",
|
|
"sha256": "d8282b04619acdcbb5259ba5a3c8677716a015cfef3ba68ba24211590c5bb5dc"
|
|
},
|
|
{
|
|
"type": "archive",
|
|
"only-arches": ["aarch64"],
|
|
"url": "https://static.rust-lang.org/dist/rust-1.20.0-aarch64-unknown-linux-gnu.tar.gz",
|
|
"sha256": "eaab3df489d4d8f976c4327d812b9870730eed6d0bbd52712767083d02be7472"
|
|
},
|
|
{
|
|
"type": "archive",
|
|
"only-arches": ["x86_64"],
|
|
"url": "https://static.rust-lang.org/dist/rust-1.20.0-x86_64-unknown-linux-gnu.tar.gz",
|
|
"sha256": "ca1cf3aed73ff03d065a7d3e57ecca92228d35dc36d9274a6597441319f18eb8"
|
|
}
|
|
],
|
|
"build-commands": [
|
|
"./install.sh --help",
|
|
"./install.sh --list-components --verbose",
|
|
"./install.sh --prefix=/usr/lib/sdk/rust-120 --disable-ldconfig --verbose"
|
|
]
|
|
},
|
|
{
|
|
"name": "scripts",
|
|
"sources": [
|
|
{
|
|
"type": "script",
|
|
"commands": [
|
|
"export PATH=$PATH:/usr/lib/sdk/rust-120/bin"
|
|
],
|
|
"dest-filename": "enable.sh"
|
|
}
|
|
],
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"cp enable.sh /usr/lib/sdk/rust-120/"
|
|
]
|
|
},
|
|
{
|
|
"name": "appdata",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"mkdir -p ${FLATPAK_DEST}/share/appdata",
|
|
"cp org.freedesktop.Sdk.Extension.rust-120.appdata.xml ${FLATPAK_DEST}/share/appdata",
|
|
"appstream-compose --basename=org.freedesktop.Sdk.Extension.rust-120 --prefix=${FLATPAK_DEST} --origin=flatpak org.freedesktop.Sdk.Extension.rust-120"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "file",
|
|
"path": "org.freedesktop.Sdk.Extension.rust-120.appdata.xml"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|