Skip to content

Commit

Permalink
Add flatpak things
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Dec 7, 2024
1 parent 33dcdae commit 0a8cf1e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
60 changes: 60 additions & 0 deletions flatpak/dev.danielc.mlinstall.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"id": "dev.danielc.mlinstall",
"runtime": "org.gnome.Platform",
"runtime-version": "46",
"sdk": "org.gnome.Sdk",
"command": "mlinstall",
"modules": [
{
"name": "libui-dev",
"buildsystem": "simple",
"build-commands": [
"mkdir $FLATPAK_DEST/include $FLATPAK_DEST/lib $FLATPAK_DEST/bin",
"make TARGET=l libui_x86_64_gtk.so -j`nproc`",
"cp libui_x86_64_gtk.so $FLATPAK_DEST/lib/libui.so",
"cp include/ui.h $FLATPAK_DEST/include/"
],
"sources": [
{
"type": "git",
"url": "https://github.com/petabyt/libui-dev",
"branch": "master"
}
]
},
{
"name": "libusb",
"config-opts": [ "--disable-static" ],
"cleanup": [
"/lib/*.la",
"/lib/pkgconfig",
"/include"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2",
"sha256": "ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575"
}
],
"post-install": [
"install -Dm644 COPYING ${FLATPAK_DEST}/share/licenses/libusb/COPYING"
]
},
{
"name": "hello",
"buildsystem": "simple",
"build-commands": [
"make TARGET=l linux.out",
"cp linux.out $FLATPAK_DEST/bin/mlinstall"
],
"sources": [
{
"type": "git",
"url": "https://github.com/petabyt/mlinstall.git",
"branch": "master"
}
]
}
]
}
1 change: 1 addition & 0 deletions flatpak/r.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flatpak --socket=x11 --socket=fallback-x11 run dev.danielc.mlinstall
1 change: 1 addition & 0 deletions flatpak/x.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir *.json

0 comments on commit 0a8cf1e

Please sign in to comment.