diff --git a/io.github.cen64-qt/linglong.yaml b/io.github.cen64-qt/linglong.yaml new file mode 100644 index 000000000..ed57edd9d --- /dev/null +++ b/io.github.cen64-qt/linglong.yaml @@ -0,0 +1,32 @@ +package: + id: io.github.cen64-qt + name: cen64-qt + version: 2021.10.17 + kind: app + description: | + A customizable frontend for CEN64 + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +depends: + - id: quazip + type: runtime + version: 1.4.0 + source: + kind: git + url: https://github.com/stachenov/quazip.git + version: master + commit: 7f82903e5b4752c5d9ebc36bf8801123c705ad64 + build: + kind: cmake + +source: + kind: git + url: https://github.com/dh4/cen64-qt.git + commit: 19f7d72b4eac86eb25c6b023b78e4f1fe8c58832 + patch: patches/0001-install.patch + +build: + kind: qmake diff --git a/io.github.cen64-qt/patches/0001-install.patch b/io.github.cen64-qt/patches/0001-install.patch new file mode 100644 index 000000000..7aa910b34 --- /dev/null +++ b/io.github.cen64-qt/patches/0001-install.patch @@ -0,0 +1,81 @@ +From b6e5c7d3e2ccd9a8394669ea149c68e6a3ba3975 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +Date: Mon, 13 May 2024 12:39:00 +0800 +Subject: [PATCH] install + +--- + cen64-qt.pro | 16 ++++++++++++---- + src/common.cpp | 4 ++-- + src/emulation/emulatorhandler.cpp | 4 ++-- + 3 files changed, 16 insertions(+), 8 deletions(-) + +diff --git a/cen64-qt.pro b/cen64-qt.pro +index 4fbb3fd..a023605 100644 +--- a/cen64-qt.pro ++++ b/cen64-qt.pro +@@ -15,7 +15,7 @@ macx { + TEMPLATE = app + macx:ICON = dist/macosx/cen64.icns + win32:RC_FILE = dist/windows/icon.rc +- ++INCLUDEPATH += $${PREFIX}/include + + SOURCES += src/main.cpp \ + src/common.cpp \ +@@ -76,12 +76,20 @@ win32|macx|linux_quazip_static { + # Debian distributions use a different library name for Qt5 quazip + system("which dpkg > /dev/null 2>&1") { + system("dpkg -l | grep libquazip-qt5-dev | grep ^ii > /dev/null") { +- LIBS += -lquazip-qt5 ++ LIBS += -lquazip1-qt5 + } else { +- LIBS += -lquazip5 ++ LIBS += -lquazip1-qt5 + } + } else { +- LIBS += -lquazip5 ++ LIBS += -lquazip1-qt5 + } + } + } ++ ++target.path =$$PREFIX/bin ++desktop.files =resources/cen64-qt.desktop ++desktop.path = $$PREFIX/share/applications/ ++icons.path = $$PREFIX/share/icons/hicolor/16X16/apps/ ++icons.files = resources/images/cen64-qt.png ++ ++INSTALLS += target desktop icons +diff --git a/src/common.cpp b/src/common.cpp +index 3ffdb7c..bfb7d02 100644 +--- a/src/common.cpp ++++ b/src/common.cpp +@@ -40,8 +40,8 @@ + #include + #include + +-#include +-#include ++#include ++#include + + #ifdef Q_OS_WIN + #include +diff --git a/src/emulation/emulatorhandler.cpp b/src/emulation/emulatorhandler.cpp +index 53350ce..694e440 100644 +--- a/src/emulation/emulatorhandler.cpp ++++ b/src/emulation/emulatorhandler.cpp +@@ -39,8 +39,8 @@ + #include + #include + +-#include +-#include ++#include ++#include + + + EmulatorHandler::EmulatorHandler(QWidget *parent) : QObject(parent) +-- +2.33.1 +