Skip to content

Commit

Permalink
Initial upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
devofspine committed Jun 9, 2019
0 parents commit 061c0b6
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Flatpak build for spinedemo

See releases for binary downloads.
11 changes: 11 additions & 0 deletions flatpak/boost-configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

./bootstrap.sh "$@"

cat <<EOF > "Makefile"
LIB_TARGETS = --with-fiber --with-filesystem
all:
./b2 \$(LIB_TARGETS)
install:
./b2 install \$(LIB_TARGETS)
EOF
15 changes: 15 additions & 0 deletions flatpak/org.devofspine.SpineDemo.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<component>
<id>org.devofspine.SpineDemo</id>
<name>spinedemo</name>
<summary>PS4 emulator for Linux</summary>
<metadata_license>CC0-1.0</metadata_license>
<provides>
<binary>spinedemo</binary>
</provides>
<releases>
<release version="20190609" date="2019-06-09"/>
<release version="20190605" date="2019-06-05"/>
</releases>
<developer_name>devofspine</developer_name>
</component>
106 changes: 106 additions & 0 deletions flatpak/org.devofspine.SpineDemo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"app-id": "org.devofspine.SpineDemo",
"runtime": "org.freedesktop.Platform",
"runtime-version": "18.08",
"sdk": "org.freedesktop.Sdk",
"command": "spinedemo",
"finish-args": [
"--share=ipc",
"--socket=x11",
"--device=dri"
],
"build-options": {
"strip": true
},
"modules": [
{
"name": "boost",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"path": "boost_1_66_0.tar.bz2"
},
{
"type": "file",
"path": "boost-configure",
"dest-filename": "configure"
}
]
},
{
"name": "fmt",
"buildsystem": "cmake",
"config-opts": ["-DFMT_TEST=OFF"],
"sources": [
{
"type": "archive",
"path": "fmt-5.2.1.zip"
}
]
},
{
"name": "glew",
"buildsystem": "cmake",
"subdir": "build/cmake",
"config-opts": ["-DBUILD_UTILS=OFF"],
"sources": [
{
"type": "archive",
"path": "glew-2.1.0.tgz"
}
],
"post-install": [
"sed -i '/Requires:/d' /app/lib/pkgconfig/glew.pc"
]
},
{
"name": "tclap",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"path": "tclap-1.2.2.tar.gz"
}
]
},
{
"name": "spinedemo",
"buildsystem": "meson",
"config-opts": ["-Ddemo=true", "--buildtype=release"],
"sources": [
{
"type": "file",
"path": "../meson.build"
},
{
"type": "file",
"path": "../meson_options.txt"
},
{
"type": "dir",
"path": "../external",
"dest": "external"
},
{
"type": "dir",
"path": "../src",
"dest": "src"
},
{
"type": "file",
"path": "org.devofspine.SpineDemo.appdata.xml"
}
],
"post-install": [
"install -Dm755 /run/build/spinedemo/_flatpak_build/spine /app/bin/spinedemo",
"install -Dm644 /run/build/spinedemo/org.devofspine.SpineDemo.appdata.xml /app/share/appdata/org.devofspine.SpineDemo.appdata.xml",
"rm -r /app/include",
"rm -r /app/lib/cmake",
"rm -r /app/lib/pkgconfig",
"rm -r /app/lib/*.a",
"rm -r /app/share/doc"
]
}
]
}

0 comments on commit 061c0b6

Please sign in to comment.