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

Commit

Permalink
build: add app xchm
Browse files Browse the repository at this point in the history
Unix CHM viewer

Log: add app xchm
  • Loading branch information
mhc2910463910 committed May 29, 2024
1 parent ceda2d7 commit ebeeb9c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
38 changes: 38 additions & 0 deletions io.github.xchm/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package:
id: io.github.xchm
name: xchm
version: 1.37.0
kind: app
description: |
UNIX CHM viewer.
runtime:
id: org.deepin.Runtime
version: 23.0.0

depends:
- id: automake
version: 1.16.5
- id: autoconf
version: 2.4.7
- id: libtool
version: 2.4.6
- id: wxWidgets
version: 3.2.3
source:
kind: git
url: "https://github.com/rzvncj/xCHM.git"
commit: c63faadb67fd25e7f34fb1c78767f14938936abd
patch: patches/fix-install.patch

build:
kind: manual
manual:
configure: |
./bootstrap
CFLAGS="-Wall -O2" LDFLAGS="-L${PREFIX}/lib" CXXFLAGS="-L${PREFIX}/include" ./configure --prefix=${PREFIX} --enable-builtin-chmlib --disable-dependency-tracking
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
21 changes: 21 additions & 0 deletions io.github.xchm/patches/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/Makefile.am b/Makefile.am
index 4c8c43f..6c02512 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,5 +14,16 @@ macbundle: all
clean-local:
-rm -rf $(top_srcdir)/xCHM.app

+
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/bin
+ $(INSTALL_PROGRAM) $(top_builddir)/src/xchm $(DESTDIR)$(prefix)/bin
+
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/applications
+ cp $(top_srcdir)/data/xchm.desktop $(DESTDIR)$(prefix)/share/applications/xchm.desktop
+
+ $(mkinstalldirs) $(DESTDIR)$(prefix)/share/icons
+ cp $(top_srcdir)/art/128x128/apps/xchm.png $(DESTDIR)$(prefix)/share/icons/hicolor/128x128/apps/xchm.png
+
.PHONY: bundle

0 comments on commit ebeeb9c

Please sign in to comment.