Skip to content

Commit

Permalink
New package: abaddon-0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejet committed Dec 11, 2023
1 parent bf423dd commit 85ae1d7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
8 changes: 8 additions & 0 deletions srcpkgs/abaddon/files/abaddon.desktop
Original file line number Diff line number Diff line change
@@ -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;
14 changes: 14 additions & 0 deletions srcpkgs/abaddon/patches/cmake.patch
Original file line number Diff line number Diff line change
@@ -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")
53 changes: 53 additions & 0 deletions srcpkgs/abaddon/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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
}

0 comments on commit 85ae1d7

Please sign in to comment.