From e7f01b2f62b7c1fa88787f70f33d3ed618e4b7f8 Mon Sep 17 00:00:00 2001 From: wjyrich <1071633242@qq.com> Date: Wed, 31 Jan 2024 20:48:35 +0800 Subject: [PATCH] build: add easy-slideshow Slideshow that displays the images of multiple folders in a randomized order. Log: add software name--easy-slideshow --- io.github.easy-slideshow/linglong.yaml | 20 ++++++++ .../patches/0001-install.patch | 46 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 io.github.easy-slideshow/linglong.yaml create mode 100644 io.github.easy-slideshow/patches/0001-install.patch diff --git a/io.github.easy-slideshow/linglong.yaml b/io.github.easy-slideshow/linglong.yaml new file mode 100644 index 000000000..08fe9a200 --- /dev/null +++ b/io.github.easy-slideshow/linglong.yaml @@ -0,0 +1,20 @@ +package: + id: io.github.easy-slideshow + name: easy-slideshow + version: 0.4.5.4 + kind: app + description: | + Slideshow that displays the images of multiple folders in a randomized order. + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/minils/easy-slideshow.git + commit: c5bf2b85cb9f70618ba04aa610cc1ef1b03d56ae + patch: patches/0001-install.patch + +build: + kind: qmake diff --git a/io.github.easy-slideshow/patches/0001-install.patch b/io.github.easy-slideshow/patches/0001-install.patch new file mode 100644 index 000000000..9b622bf55 --- /dev/null +++ b/io.github.easy-slideshow/patches/0001-install.patch @@ -0,0 +1,46 @@ +From a42dc0c38f6337b5bf568d1aebe6e3b128343124 Mon Sep 17 00:00:00 2001 +From: wjyrich <1071633242@qq.com> +Date: Wed, 31 Jan 2024 20:44:25 +0800 +Subject: [PATCH] install + +--- + EasySlideshow.pro | 6 +++--- + desktop/easyslideshow.desktop | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/EasySlideshow.pro b/EasySlideshow.pro +index de7d4f6..ce436c4 100644 +--- a/EasySlideshow.pro ++++ b/EasySlideshow.pro +@@ -67,12 +67,12 @@ versionTarget.commands = touch ./version.h; cd $$PWD; git log -n 1 --format=form + #PRE_TARGETDEPS += version.h + + # installation +-target.path = /usr/bin ++target.path = $$PREFIX/bin + +-icon.path = /usr/share/icons/hicolor/scalable/apps ++icon.path = $$PREFIX/share/icons/hicolor/scalable/apps + icon.files = svg/easyslideshow.svg + +-desktop.path = /usr/share/applications ++desktop.path = $$PREFIX/share/applications + desktop.files = desktop/easyslideshow.desktop + + INSTALLS += target \ +diff --git a/desktop/easyslideshow.desktop b/desktop/easyslideshow.desktop +index a408a0c..bc07ced 100644 +--- a/desktop/easyslideshow.desktop ++++ b/desktop/easyslideshow.desktop +@@ -1,7 +1,7 @@ + [Desktop Entry] + Name=EasySlideshow + Comment= Slideshow that displays the images of multiple folders in a randomized order. +-Exec=/usr/bin/easyslideshow ++Exec=easyslideshow + Icon=easyslideshow + Type=Application + Categories=Graphics;Utility; +-- +2.33.1 +