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

Commit

Permalink
build: add uConfig
Browse files Browse the repository at this point in the history
Datasheet pinout extractor from PDF and library Stylizer for Kicad.

Log: add software name--uConfig
  • Loading branch information
wjyrich committed May 28, 2024
1 parent e7f01b2 commit ce1af7c
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
32 changes: 32 additions & 0 deletions io.github.uConfig/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
id: io.github.uConfig
name: uConfig
version: 0.4.1
kind: app
description: |
Datasheet pinout extractor from PDF and library Stylizer for Kicad.
runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: poppler/0.71.0.2
type: runtime

source:
kind: git
url: https://github.com/Robotips/uConfig.git
commit: c7a73b362362bfb2a1ef28857a2f994e978ec905
patch: patches/0001-install.patch

build:
kind: qmake
manual:
configure: |
cd src
qmake -makefile ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
81 changes: 81 additions & 0 deletions io.github.uConfig/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
From 89a13a9e65efebab15a8a0efb8cb435b2b5b55af Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Tue, 21 May 2024 14:40:19 +0800
Subject: [PATCH] install

---
src/kicad/kicad.pro | 2 +-
src/pdf_extract/pdf_extract.pro | 4 +++-
src/uconfig_gui/img/uconfig_gui.desktop | 10 ++++++++++
src/uconfig_gui/uconfig_gui.pro | 8 ++++++++
4 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 src/uconfig_gui/img/uconfig_gui.desktop

diff --git a/src/kicad/kicad.pro b/src/kicad/kicad.pro
index b02314f..19924f2 100644
--- a/src/kicad/kicad.pro
+++ b/src/kicad/kicad.pro
@@ -123,6 +123,6 @@ RESOURCES += \
$$PWD/imgviewer.qrc

unix {
- target.path = /usr/lib
+ target.path = $$PREFIX/bin
INSTALLS += target
}
diff --git a/src/pdf_extract/pdf_extract.pro b/src/pdf_extract/pdf_extract.pro
index 5d3caf2..a6af3be 100644
--- a/src/pdf_extract/pdf_extract.pro
+++ b/src/pdf_extract/pdf_extract.pro
@@ -5,7 +5,7 @@ TEMPLATE = lib

PROJECT_ROOT = $$PWD/../..
SOURCE_ROOT = $$PWD/..
-
+INCLUDEPATH += $${PREFIX}/include
DESTDIR = "$$PROJECT_ROOT/bin"
INCLUDEPATH += $$SOURCE_ROOT
DEFINES += KICAD_EXPORT=Q_DECL_IMPORT
@@ -72,3 +72,5 @@ packagesExist(poppler-qt5) {
else {
LIBS += -lpoppler-qt5
}
+target.path = $$PREFIX/bin
+INSTALLS += target
\ No newline at end of file
diff --git a/src/uconfig_gui/img/uconfig_gui.desktop b/src/uconfig_gui/img/uconfig_gui.desktop
new file mode 100644
index 0000000..6072d1c
--- /dev/null
+++ b/src/uconfig_gui/img/uconfig_gui.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Exec=uconfig_gui
+Name=uconfig_gui
+Name[zh_CN]=uconfig_gui
+Icon=uConfig
+StartupNotify=false
+Terminal=false
+Type=Application
+GenericName=uconfig_gui
+Version=0.4
\ No newline at end of file
diff --git a/src/uconfig_gui/uconfig_gui.pro b/src/uconfig_gui/uconfig_gui.pro
index 561de26..d61d5c5 100644
--- a/src/uconfig_gui/uconfig_gui.pro
+++ b/src/uconfig_gui/uconfig_gui.pro
@@ -53,3 +53,11 @@ INCLUDEPATH += $$SOURCE_ROOT/kicad
DEPENDPATH += $$SOURCE_ROOT/kicad

win32 : RC_FILE = uconfig_gui.rc
+
+target.path = $$PREFIX/bin
+desktop.files = img/uconfig_gui.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/scalable/apps
+icons.files = img/uConfig.svg
+
+INSTALLS += target desktop icons
--
2.33.1

0 comments on commit ce1af7c

Please sign in to comment.