Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
build: add showifcfg
Browse files Browse the repository at this point in the history
Log: 完成app:showifcfg的编译
  • Loading branch information
QE2333 authored and kamiyadm committed Dec 26, 2023
1 parent 9a1a1ba commit 9341e3c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
21 changes: 21 additions & 0 deletions io.github.showifcfg/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.showifcfg
name: showifcfg
version: 0.0.1
kind: app
description: |
Silly QML utility to show ifconfig results,useful for cases where a shell is not convenient.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: "https://github.com/berndhs/showifcfg.git"
commit: 4e92dab92bf89cbb01c236f62e9e3ef128e53b2f
patch:
- patches/fix-desktop.patch

build:
kind: qmake
43 changes: 43 additions & 0 deletions io.github.showifcfg/patches/fix-desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
diff --git a/shownetif.desktop b/shownetif.desktop
index 620f6c0..8b1e4e5 100644
--- a/shownetif.desktop
+++ b/shownetif.desktop
@@ -3,6 +3,6 @@ Type=Application
Name=showifcfg
GenericName=showifcfg
Comment=Utility to display ip interface configurations
-Exec=showifcfg
-Icon=showifcfg
+Exec=shownetif %f
+Icon=showinetif
Categories=Utility;Network;
diff --git a/shownetif.pro b/shownetif.pro
index f122fc6..30de0ea 100644
--- a/shownetif.pro
+++ b/shownetif.pro
@@ -51,21 +51,21 @@ OTHER_FILES += \
notes.txt

unix:!symbian:!maemo5 {
- target.path = /usr/bin/
+ target.path = $$PREFIX/bin
INSTALLS += target
}

BLD_ADDONS = ""
unix:!symbian:!maemo5 {
desktopfile.files = $${TARGET}.desktop
- desktopfile.path = /usr/share/applications
+ desktopfile.path = $$PREFIX/share/applications
INSTALLS += desktopfile
BLD_ADDONS += "desktop"
}

unix:!symbian:!maemo5 {
- icon.files = showifcfg.png
- icon.path = /usr/share/icons/hicolor/64x64/apps
+ icon.files = images/showinetif.png
+ icon.path = $${PREFIX}/share/icons
INSTALLS += icon
BLD_ADDONS += "icon"
}

0 comments on commit 9341e3c

Please sign in to comment.