-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
devofspine
committed
Jun 9, 2019
0 parents
commit 061c0b6
Showing
4 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Flatpak build for spinedemo | ||
|
||
See releases for binary downloads. |
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
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 |
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
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> |
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
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" | ||
] | ||
} | ||
] | ||
} |