Skip to content

Commit

Permalink
New package: abaddon-0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejet committed Jul 16, 2024
1 parent eac2a4b commit 2770ff3
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions srcpkgs/abaddon/files/abaddon.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=abaddon
Type=Application
Comment=Alternative Discord client using GTK
Exec=/usr/bin/abaddon
TryExec=/usr/bin/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")
54 changes: 54 additions & 0 deletions srcpkgs/abaddon/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Template file for 'abaddon'
pkgname=abaddon
version=0.2.1
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"
depends="desktop-file-utils"
short_desc="Alternative Discord client with voice support made with C++ and GTK3"
maintainer="Mazin Fadl <mazen@illumed.net>"
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="407d14bc7659c65eca1c5266fb96a60b1e169b31c122159ae7f54e69a86e0b45
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 2770ff3

Please sign in to comment.