Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ libgimpcolor-3.0.so.0 libgimp-3.0.0_1
libgimpmodule-3.0.so.0 libgimp-3.0.0_1
libgmic.so.3 libgmic-3.5.3_1
libcgmic.so.3 libgmic-3.5.3_1
libcgowm.so libcgowm-5.17.26_1
libexiv2.so.28 exiv2-0.28.1_1
libKF5Holidays.so.5 kholidays-5.47.0_1
libKF6PulseAudioQt.so.5 pulseaudio-qt-1.5_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/libcgowm-devel
34 changes: 34 additions & 0 deletions srcpkgs/libcgowm/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Template file for 'libcgowm'
pkgname=libcgowm
version=5.18.20
revision=1
build_style=go
go_import_path=github.com/d99kris/nchat/lib/wmchat/go
short_desc="Sub-module for whatsapp protocol on nchat"
maintainer="orahcio <orahcio@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/d99kris/nchat"
changelog="https://github.com/d99kris/nchat/releases"
distfiles="https://github.com/d99kris/nchat/archive/refs/tags/v${version}.tar.gz"
checksum=49312e609ea3140246ed434c402c714f9e461f2f6381b349046bc3c29d579d5c
make_check=no # package has no tests
shlib_provides="libcgowm.so"

do_build() {
cd "${wrksrc}/lib/wmchat/go"
go build -v -buildmode=c-shared -o libcgowm.so .
}

do_install() {
cd "${wrksrc}/lib/wmchat/go"
vinstall libcgowm.so 755 usr/lib/
}

libcgowm-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
cd "${wrksrc}/lib/wmchat/go"
vinstall libcgowm.h 644 usr/include/
}
}
19 changes: 19 additions & 0 deletions srcpkgs/nchat/patches/00-unbundle-libtd.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- a/lib/tgchat/CMakeLists.txt 2026-07-16 11:54:44.296130077 -0300
+++ b/lib/tgchat/CMakeLists.txt 2026-08-10 07:01:28.585668256 -0300
@@ -48,12 +48,12 @@
target_include_directories(tgchat PRIVATE "ext/td")

# Dependency tdlib
-add_subdirectory(ext/td EXCLUDE_FROM_ALL)
+# add_subdirectory(ext/td EXCLUDE_FROM_ALL)

if(LIBRARY_LINKING_TYPE STREQUAL "SHARED")
- set(TDLIBNAME "tdclientshared")
- set(TDLIBFILENAME "libtdclientshared${CMAKE_SHARED_LIBRARY_SUFFIX}")
- install(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${TDLIBFILENAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ set(TDLIBNAME "tdclient")
+ set(TDLIBFILENAME "libtdclient${CMAKE_SHARED_LIBRARY_SUFFIX}")
+# install(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${TDLIBFILENAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
else()
set(TDLIBNAME "tdclient")
endif()
26 changes: 26 additions & 0 deletions srcpkgs/nchat/patches/01-unbundle-libcgowm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/lib/wmchat/CMakeLists.txt 2026-08-07 08:19:17.933945600 -0300
+++ b/lib/wmchat/CMakeLists.txt 2026-08-09 10:41:40.830631943 -0300
@@ -24,11 +24,11 @@
# Combined WhatsApp+Signal c-archive built in lib/gostat; the per-protocol Go
# library is not built in this configuration.
set(WMCHAT_GOLIB ref-cgogostat)
-else()
- add_subdirectory(go)
- set(WMCHAT_GOLIB ref-cgowm)
+# else()
+# add_subdirectory(go)
+# set(WMCHAT_GOLIB ref-cgowm)
endif()
-add_dependencies(wmchat ${WMCHAT_GOLIB})
+# add_dependencies(wmchat ${WMCHAT_GOLIB})

# Platform specifics
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -41,6 +41,7 @@
# Headers
target_include_directories(wmchat PRIVATE "../common/src")
target_include_directories(wmchat PRIVATE "../ncutil/src")
+target_include_directories(wmchat PUBLIC "${WMCHAT_GOLIB_INCLUDEDIR}")

# Compiler flags
set_target_properties(wmchat PROPERTIES COMPILE_FLAGS
16 changes: 16 additions & 0 deletions srcpkgs/nchat/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Template file for 'nchat'
pkgname=nchat
version=5.18.20
revision=1
build_style=cmake
configure_args="-DHAS_DUMMY=OFF -DCMAKE_INSTALL_MANDIR=/usr/share/man -DWMCHAT_GOLIB=${XBPS_CROSS_BASE}/usr/lib/libcgowm.so -DWMCHAT_GOLIB_INCLUDEDIR=${XBPS_CROSS_BASE}/usr/include/libcgowm.h"
hostmakedepends="go gperf pkg-config python3"
makedepends="file-devel ncurses-devel openssl-devel sqlite-devel zlib-devel libtd-devel libcgowm-devel"
depends="libtd libcgowm"
short_desc="Terminal-based messaging client for Linux"
maintainer="orahcio <orahcio@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/d99kris/nchat"
changelog="https://github.com/d99kris/nchat/releases"
distfiles="https://github.com/d99kris/nchat/archive/refs/tags/v${version}.tar.gz"
checksum=49312e609ea3140246ed434c402c714f9e461f2f6381b349046bc3c29d579d5c