Skip to content

Commit

Permalink
Almost ready with packaging all applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed May 8, 2024
1 parent e20f119 commit 838b1b7
Show file tree
Hide file tree
Showing 35 changed files with 308 additions and 38 deletions.
37 changes: 23 additions & 14 deletions eclass/uimgui.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ case ${EAPI} in
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

# @ECLASS_VARIABLE: UIMGUI_PROJECT_ARCHIVE_NAME
# @PRE_INHERIT
# @DEFAULT_UNSET
# @DESCRIPTION: specify the name of the project archive
: "${UIMGUI_PROJECT_ARCHIVE_NAME}"

RDEPEND+="untitled-imgui-framework"
S="${WORKDIR}"
RDEPEND+="ude-base/untitled-imgui-framework"
S="${WORKDIR}/UFW"

# @FUNCTION: uimgui_src_unpack
# @DESCRIPTION: Unpacks the framework
uimgui_src_unpack() {
# Unpack framework
unpack untitled-imgui-framework.tar.xz
mkdir "${WORKDIR}"/UFW || die
ls "${WORKDIR}" | grep -v "UFW" | xargs -i mv {} "${WORKDIR}"/UFW || die

# Unpack project
unpack "${PN}".tar.xz
mkdir "${WORKDIR}"/"${PN}" || die
ls "${WORKDIR}" | grep -v "UFW" | grep -v "${PN}" | xargs -i mv {} "${WORKDIR}"/"${PN}" || die
}

# @FUNCTION: uimgui_src_compile
Expand All @@ -38,26 +39,34 @@ uimgui_src_compile() {
# Compile build tool
./install.sh ci || die

# TODO: Unpack project archive here
(cd Projects/ && mkdir "${PN}" && cd "${PN}" && unpack "${UIMGUI_PROJECT_ARCHIVE_NAME}" && cd ../../) || die
# Move the project in place
mv "${WORKDIR}"/"${PN}" "${S}"/Projects/ || die

# Create required links and directories
mkdir "${S}"/Projects/"${PN}"/Generated || die
ln -rs "${S}"/Framework "${S}"/Projects/"${PN}"/Framework || die
ln -rs "${S}"/Framework "${S}"/Projects/"${PN}"/UVKBuildTool || die
ln -rs "${S}"/"export.sh" "${S}"/Projects/"${PN}"/"export.sh" || die
mkdir "${S}"/Projects/"${PN}"/Exported || die

cd UVKBuildTool/build || die
./UVKBuildTool --generate ../../Projects/"${PN}" || exit
cd "${S}"/UVKBuildTool/build || die
./UVKBuildTool --generate ../../Projects/"${PN}" || die

# Configure for production
sed -i "s/build-mode-vendor: true/build-mode-vendor: false/g" "${S}"/Projects/"${PN}"/uvproj.yaml
sed -i "s/install-framework: true/install-framework: false/g" "${S}"/Projects/"${PN}"/uvproj.yaml
echo "system-wide: true" >> "${S}"/Projects/"${PN}"/uvproj.yaml
}

# @FUNCTION: uimgui_src_install
# @DESCRIPTION: Build application and install it
uimgui_src_install() {
cd UVKBuildTool/build || die
cd "${S}"/UVKBuildTool/build || die
# Export application for production
./UVKBuildTool --build "${ED}"/usr ../../Projects/"${PN}" || die

# Delete uneeded files
rm -rf "${ED}"/usr/share/utf8cpp "${ED}"/usr/include/utf8cpp || die
}

EXPORT_FUNCTIONS uimgui_src_unpack uimgui_src_compile uimgui_src_install
EXPORT_FUNCTIONS src_unpack src_compile src_install
24 changes: 24 additions & 0 deletions ude-apps/autogen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ude_apps_rule:
generator: ude-github
packages:
- untitled-ibus-handwriting:
user: MadLadSquad
repo: UntitledIBusHandwriting
tarball: "untitled-ibus-handwriting.tar.xz"
- untitled-game-system-manager:
user: MadLadSquad
repo: UntitledGameSystemManager
tarball: "untitled-game-system-manager.tar.xz"
- ude-welcome:
user: MadLadSquad
repo: UntitledDEWelcome
tarball: "ude-welcome.tar.xz"
- ude-session-logout:
user: MadLadSquad
repo: UntitledDESessionLogout
tarball: "ude-session-logout.tar.xz"
- udf-panel:
user: MadLadSquad
repo: UDFPanel
tarball: "udf-panel.tar.xz"

Binary file not shown.
22 changes: 22 additions & 0 deletions ude-apps/generators/ude-github.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python3

async def generate(hub, **pkginfo):
framework = await hub.pkgtools.github.release_gen(
hub,
"MadLadSquad",
"UntitledImGuiFramework",
tarball="untitled-imgui-framework.tar.xz"
)
application = await hub.pkgtools.github.release_gen(
hub,
pkginfo["user"],
pkginfo["repo"],
tarball=pkginfo["tarball"],
)

ebuild = hub.pkgtools.ebuild.BreezyBuild(
**pkginfo,
version=application["version"],
artifacts=[framework["artifacts"][0], application["artifacts"][0]]
)
ebuild.push()
21 changes: 21 additions & 0 deletions ude-apps/templates/ude-session-logout.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A log out prompt for the UntitledDesktopEnvironment"
HOMEPAGE="https://github.com/MadLadSquad/UntitledDESessionLogout"
SRC_URI="{{ artifacts[0].src_uri }}
{{ artifacts[1].src_uri }}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND="sys-auth/elogind"

21 changes: 21 additions & 0 deletions ude-apps/templates/ude-welcome.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A welcome and info application for the UntitledDesktopEnvironment"
HOMEPAGE="https://github.com/MadLadSquad/UntitledDEWelcome"
SRC_URI="{{ artifacts[0].src_uri }}
{{ artifacts[1].src_uri }}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND=""

21 changes: 21 additions & 0 deletions ude-apps/templates/udf-panel.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A simple panel implementation for the UntitledDesktopEnvironment Flow"
HOMEPAGE="https://github.com/MadLadSquad/UDFPanel"
SRC_URI="{{ artifacts[0].src_uri }}
{{ artifacts[1].src_uri }}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND=""

21 changes: 21 additions & 0 deletions ude-apps/templates/untitled-game-system-manager.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A manager for containerised Linux gaming systems based on Incus"
HOMEPAGE="https://github.com/MadLadSquad/UntitledGameSystemManager"
SRC_URI="{{ artifacts[0].src_uri }}
{{ artifacts[1].src_uri }}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND="dev-lang/go"
DEPEND=""
RDEPEND="app-emulation/incus"

22 changes: 22 additions & 0 deletions ude-apps/templates/untitled-ibus-handwriting.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A handwriting recognition input method plugin for ibus"
HOMEPAGE="https://github.com/MadLadSquad/UntitledIBusHandwriting"
SRC_URI="{{ artifacts[0].src_uri }}
{{ artifacts[1].src_uri }}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND="app-i18n/ibus
virtual/rust"

2 changes: 2 additions & 0 deletions ude-apps/ude-session-logout/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST ude-session-logout.tar.xz 46268 BLAKE2B 122f7eec3f522e3a7c05ddb05b977eb6ba94b6b06e49e5881f977776d79cfafe5030f2ba6b24b8d8f9f746cb647427ec850b057c2e0a110e4bd52629b397dec0 SHA512 250db42e95fd066a9baeb886de0c6d74a09c679896f7f0ce2b53b1962d899239ab6d5b0bfc16f98482e71620e0b3b4863a6d6aac5bd185d74b8023096d82294a
DIST untitled-imgui-framework.tar.xz 6848240 BLAKE2B ca4dda7b6308a71b32aa8b76bd79445a9f849ea74be057a4a3e4900349046334c929372c5fa357c5d2ef50a198726133a2eb7e326be451348996e70d909a91fc SHA512 842d93512b305c6ab1f8bdc09662a154161091fb669660945c2da650795fce097dd119db83cbc7ecc5582822ed6e67f4d3c713530ff6a2d7b59e663247ef634d
20 changes: 20 additions & 0 deletions ude-apps/ude-session-logout/ude-session-logout-1.5.4.6.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A log out prompt for the UntitledDesktopEnvironment"
HOMEPAGE="https://github.com/MadLadSquad/UntitledDESessionLogout"
SRC_URI="https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v0.8.7.8.10/untitled-imgui-framework.tar.xz -> untitled-imgui-framework.tar.xz
https://github.com/MadLadSquad/UntitledDESessionLogout/releases/download/v1.5.4.6/ude-session-logout.tar.xz -> ude-session-logout.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND="sys-auth/elogind"
2 changes: 2 additions & 0 deletions ude-apps/ude-welcome/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST ude-welcome.tar.xz 121012 BLAKE2B 36474a158c93dc1a4167634ba8fa5919555bdd1181fbd33cc4637938239be80be220e3864c54a2047b1fd36a0cb4b153e7dafc69f91d8ace54edbe24fd0dcd90 SHA512 9f668cd23e73c7c4a232e420065bee6ec6b89bf93feabdc982bd5cd2d798c68dab444527806e94199d642e2097322170489fef6d92bff5b5ec5c3e85de5a5226
DIST untitled-imgui-framework.tar.xz 6848240 BLAKE2B ca4dda7b6308a71b32aa8b76bd79445a9f849ea74be057a4a3e4900349046334c929372c5fa357c5d2ef50a198726133a2eb7e326be451348996e70d909a91fc SHA512 842d93512b305c6ab1f8bdc09662a154161091fb669660945c2da650795fce097dd119db83cbc7ecc5582822ed6e67f4d3c713530ff6a2d7b59e663247ef634d
20 changes: 20 additions & 0 deletions ude-apps/ude-welcome/ude-welcome-0.8.2.8.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A welcome and info application for the UntitledDesktopEnvironment"
HOMEPAGE="https://github.com/MadLadSquad/UntitledDEWelcome"
SRC_URI="https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v0.8.7.8.10/untitled-imgui-framework.tar.xz -> untitled-imgui-framework.tar.xz
https://github.com/MadLadSquad/UntitledDEWelcome/releases/download/v0.8.2.8/ude-welcome.tar.xz -> ude-welcome.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND=""
2 changes: 2 additions & 0 deletions ude-apps/udf-panel/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST udf-panel.tar.xz 47740 BLAKE2B 155d865c8cd6b7dbba0b9e08fdc189638c093aca4d643f20a994c0b7627b2416364c9d79d8ae418ed23f23393b40615f7f47b697c228d319d8a97edaccedcdfb SHA512 baf55a043cd0f0882913a8b5b0751c16105fdb913ec15b2fed8dc7cdf5523a95f4b817a8eae0c5af449b2723b29ec1e2c8ece90738c5337a5d8550f9dac5e1d2
DIST untitled-imgui-framework.tar.xz 6848240 BLAKE2B ca4dda7b6308a71b32aa8b76bd79445a9f849ea74be057a4a3e4900349046334c929372c5fa357c5d2ef50a198726133a2eb7e326be451348996e70d909a91fc SHA512 842d93512b305c6ab1f8bdc09662a154161091fb669660945c2da650795fce097dd119db83cbc7ecc5582822ed6e67f4d3c713530ff6a2d7b59e663247ef634d
20 changes: 20 additions & 0 deletions ude-apps/udf-panel/udf-panel-0.9.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A simple panel implementation for the UntitledDesktopEnvironment Flow"
HOMEPAGE="https://github.com/MadLadSquad/UDFPanel"
SRC_URI="https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v0.8.7.8.10/untitled-imgui-framework.tar.xz -> untitled-imgui-framework.tar.xz
https://github.com/MadLadSquad/UDFPanel/releases/download/v0.9.0.6/udf-panel.tar.xz -> udf-panel.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND=""
2 changes: 2 additions & 0 deletions ude-apps/untitled-game-system-manager/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST untitled-game-system-manager.tar.xz 64272 BLAKE2B ea86419c37dc69135c995d251e54b82f04f9423896bb7dc3e23d28c2d41184961096f10b003a9ae8cef71ee680313d3c818e683fa66f06f79cbc57c0dc059ffc SHA512 0f954459ee6426eff4322f85db21512f64cbb4f9aca6dc6c1b8aa7b4c174889273e1d19bda463fb598f788443f0417fa299051ee2a5f1d22eecab169275d673e
DIST untitled-imgui-framework.tar.xz 6848240 BLAKE2B ca4dda7b6308a71b32aa8b76bd79445a9f849ea74be057a4a3e4900349046334c929372c5fa357c5d2ef50a198726133a2eb7e326be451348996e70d909a91fc SHA512 842d93512b305c6ab1f8bdc09662a154161091fb669660945c2da650795fce097dd119db83cbc7ecc5582822ed6e67f4d3c713530ff6a2d7b59e663247ef634d
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A manager for containerised Linux gaming systems based on Incus"
HOMEPAGE="https://github.com/MadLadSquad/UntitledGameSystemManager"
SRC_URI="https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v0.8.7.8.10/untitled-imgui-framework.tar.xz -> untitled-imgui-framework.tar.xz
https://github.com/MadLadSquad/UntitledGameSystemManager/releases/download/v2.0.1.6/untitled-game-system-manager.tar.xz -> untitled-game-system-manager.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND="dev-lang/go"
DEPEND=""
RDEPEND="app-emulation/incus"
2 changes: 2 additions & 0 deletions ude-apps/untitled-ibus-handwriting/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST untitled-ibus-handwriting.tar.xz 24672920 BLAKE2B f2b9e700a9b2a0ee2a7b226e0337b5580516fffc0cad4e6885b1b939e18456c9ebb6b6e288db842639c26e197286084a253d97c504ee09d7e4045d104b9dd8d5 SHA512 39cfb79f5bfa710e9ad63994c00c95d98b751faf497dc12f4577b3247919eb3f3726b734fc1a4a43e622d0344e239b973ded4f42be4a20ba3f2d99e62c520b92
DIST untitled-imgui-framework.tar.xz 6848240 BLAKE2B ca4dda7b6308a71b32aa8b76bd79445a9f849ea74be057a4a3e4900349046334c929372c5fa357c5d2ef50a198726133a2eb7e326be451348996e70d909a91fc SHA512 842d93512b305c6ab1f8bdc09662a154161091fb669660945c2da650795fce097dd119db83cbc7ecc5582822ed6e67f4d3c713530ff6a2d7b59e663247ef634d
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit uimgui

DESCRIPTION="A handwriting recognition input method plugin for ibus"
HOMEPAGE="https://github.com/MadLadSquad/UntitledIBusHandwriting"
SRC_URI="https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v0.8.7.8.10/untitled-imgui-framework.tar.xz -> untitled-imgui-framework.tar.xz
https://github.com/MadLadSquad/UntitledIBusHandwriting/releases/download/v1.1.4.6/untitled-ibus-handwriting.tar.xz -> untitled-ibus-handwriting.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
DEPEND=""
RDEPEND="app-i18n/ibus
virtual/rust"
2 changes: 1 addition & 1 deletion ude-base/templates/untitled-cli-parser.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ KEYWORDS="*"
IUSE="unicode"
RESTRICT=""

BDEPEND=""
BDEPEND="virtual/pkgconfig"
DEPEND=""
RDEPEND="unicode? ( dev-libs/utfcpp )"

Expand Down
2 changes: 1 addition & 1 deletion ude-base/templates/untitled-dbus-utils.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
BDEPEND="virtual/pkgconfig"
DEPEND=""
RDEPEND="sys-apps/dbus"

Expand Down
2 changes: 1 addition & 1 deletion ude-base/templates/untitled-exec.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
BDEPEND="virtual/pkgconfig"
DEPEND=""
RDEPEND=""

Expand Down
2 changes: 1 addition & 1 deletion ude-base/templates/untitled-i18n.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ KEYWORDS="*"
IUSE=""
RESTRICT=""

BDEPEND=""
BDEPEND="virtual/pkgconfig"
DEPEND=""
RDEPEND="dev-cpp/yaml-cpp"

Expand Down
Loading

0 comments on commit 838b1b7

Please sign in to comment.