From 85ae1d7aeb4118ee6dbaed40424e42ec464323db Mon Sep 17 00:00:00 2001 From: Mazin Fadl Date: Mon, 16 Oct 2023 18:48:53 -0400 Subject: [PATCH] New package: abaddon-0.1.14 --- srcpkgs/abaddon/files/abaddon.desktop | 8 ++++ srcpkgs/abaddon/patches/cmake.patch | 14 +++++++ srcpkgs/abaddon/template | 53 +++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 srcpkgs/abaddon/files/abaddon.desktop create mode 100644 srcpkgs/abaddon/patches/cmake.patch create mode 100644 srcpkgs/abaddon/template diff --git a/srcpkgs/abaddon/files/abaddon.desktop b/srcpkgs/abaddon/files/abaddon.desktop new file mode 100644 index 00000000000000..7515311284c340 --- /dev/null +++ b/srcpkgs/abaddon/files/abaddon.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=abaddon +Type=Application +Comment=Alternative Discord client using GTK +Exec=/usr/bin/abaddon +TryExec=/usr/bin/abaddon +Icon=abaddon +Categories=Network;InstantMessaging; diff --git a/srcpkgs/abaddon/patches/cmake.patch b/srcpkgs/abaddon/patches/cmake.patch new file mode 100644 index 00000000000000..c42868a25ae5cc --- /dev/null +++ b/srcpkgs/abaddon/patches/cmake.patch @@ -0,0 +1,14 @@ +fix cross-build + +--- a/CMakeLists.txt 2023-08-29 00:30:45.000000000 -0400 ++++ b/CMakeLists.txt 2023-10-17 12:40:08.372798709 -0400 +@@ -212,7 +212,8 @@ + NAMES miniaudio.h + HINTS subprojects + PATH_SUFFIXES miniaudio +- REQUIRED) ++ REQUIRED ++ NO_CMAKE_FIND_ROOT_PATH) + + if (APPLE) + target_link_libraries(abaddon "-framework CoreFoundation") diff --git a/srcpkgs/abaddon/template b/srcpkgs/abaddon/template new file mode 100644 index 00000000000000..3181aeac920bbd --- /dev/null +++ b/srcpkgs/abaddon/template @@ -0,0 +1,53 @@ +# Template file for 'abaddon' +pkgname=abaddon +version=0.1.14 +revision=1 +_ixwebsocket_commit="bc765e73a31ea5372e36d1b1add036af3218cb17" +_keychain_commit="502312f59fdc44fa1103e67f8f17cec3affb82d9" +_miniaudio_commit="7384bde3725412523871f0fcf60efe5c47fbbfc6" +_qrcodegen_commit="22fac31bdf81da68730c177c0e931c93234d2a30" +build_style=cmake +hostmakedepends="pkg-config" +makedepends="gtkmm-devel libcurl-devel sqlite-devel openssl-devel + json-c++ libsecret-devel libhandy1-devel opus-devel spdlog + libsodium-devel rnnoise-devel" +short_desc="Alternative Discord client with voice support made with C++ and GTK3" +maintainer="Mazin Fadl " +license="GPL-3.0-only" +homepage="https://github.com/uowuo/abaddon" +distfiles="https://github.com/uowuo/abaddon/archive/refs/tags/v${version}.tar.gz + https://github.com/machinezone/IXWebSocket/archive/${_ixwebsocket_commit}.tar.gz + https://github.com/hrantzsch/keychain/archive/${_keychain_commit}.tar.gz + https://github.com/mackron/miniaudio/archive/${_miniaudio_commit}.tar.gz + https://github.com/nayuki/QR-Code-generator/archive/${_qrcodegen_commit}.tar.gz" +checksum="afb64186532aecf83929f30fa31a4ba8d0e76279db6319ed0d9912fba06d311c + 9dea909d05e882a540526b15fbdc9764a39deb53810eb86ad797fd8135a02275 + 3c57d272a06419ed58068d9fe14c16807041bf9b9b372b80950b9b09d08cf441 + 4b3648bf227f2373af773c6769f9c147e38d99edd74cd0736f4df1eff224e6c6 + 218e3e96ded7880d05f47c668aad6541a08e63303ac4d783720389087da6f4ed" +skip_extraction=" + ${_ixwebsocket_commit}.tar.gz + ${_keychain_commit}.tar.gz + ${_miniaudio_commit}.tar.gz + ${_qrcodegen_commit}.tar.gz + " + +post_extract() { + vsrcextract -C subprojects/ixwebsocket ${_ixwebsocket_commit}.tar.gz + vsrcextract -C subprojects/keychain ${_keychain_commit}.tar.gz + vsrcextract -C subprojects/miniaudio ${_miniaudio_commit}.tar.gz + vsrcextract -C subprojects/qrcodegen ${_qrcodegen_commit}.tar.gz +} + +do_install() { + vmkdir usr/bin + vmkdir usr/share/abaddon + vmkdir usr/share/applications + vcopy build/abaddon usr/bin + vcopy res/css usr/share/abaddon + vcopy res/res usr/share/abaddon + + vdoc README.md + + vinstall "${FILESDIR}/abaddon.desktop" 644 usr/share/applications +}