Skip to content

Instantly share code, notes, and snippets.

@nyanloutre
Last active November 29, 2017 01:42
Show Gist options
  • Save nyanloutre/6aaabf9d27173c69486cd4e3a129d528 to your computer and use it in GitHub Desktop.
Save nyanloutre/6aaabf9d27173c69486cd4e3a129d528 to your computer and use it in GitHub Desktop.
Wine flatpak runtime
all:
flatpak-builder --force-clean --repo=repo --arch=i386 app-dir org.winehq.Sdk.json
{
"build-runtime": true,
"id": "org.winehq.Sdk",
"id-platform": "org.winehq.Platform",
"branch": "2.18",
"runtime": "org.gnome.Platform",
"sdk": "org.gnome.Sdk",
"runtime-version": "3.24",
"finish-args": [
"--sdk=org.winehq.Sdk//2.18",
"--runtime=org.winehq.Platform//2.18"
],
"modules": [
{
"name": "udev",
"config-opts": [ "--disable-hwdb", "--disable-logging", "--disable-gudev",
"--disable-introspection", "--disable-keymap", "--disable-mtd_probe"],
"sources": [
{
"type": "shell",
"commands":
[
"rm /usr/share/gtk-doc/html"
]
},
{
"type": "archive",
"url": "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.bz2",
"sha256": "4c7937fe5a1521316ea571188745b9a00a9fdf314228cffc53a7ba9e5968b7ab"
}
],
"post-install": [
"ln -s /usr/lib/libudev.so.0 /usr/lib/libudev.so.1"
]
},
{
"name": "wine",
"buildsystem": "simple",
"build-commands": [
"chmod +x bin/winetricks",
"cp -a * /usr"
],
"sources": [
{
"type": "archive",
"url": "https://lutris.net/files/runners/wine-2.18-i686.tar.gz",
"sha256": "96c621afbce126493abaface0b9c15ca28758946d9a2151779739f15fb0b2671"
},
{
"type": "file",
"url": "https://raw.githubusercontent.com/Winetricks/winetricks/20171018/src/winetricks",
"sha256": "637b054ee4c50459e49ccc36f018893dabd194e63e7e856dbf9a6257ba42311a",
"dest-filename": "bin/winetricks"
}
]
},
{
"name": "cabextract",
"sources": [
{
"type": "archive",
"url": "https://www.cabextract.org.uk/cabextract-1.6.tar.gz",
"sha256": "cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb"
}
]
},
{
"name": "libpng",
"sources": [
{
"type": "archive",
"url": "https://freefr.dl.sourceforge.net/project/libpng/libpng12/1.2.59/libpng-1.2.59.tar.gz",
"sha256": "4bd4b5ce04ce634c281ae76174714fa02b053b573ac2181c985db06aa57e1e9e"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment