blob: 6942a4edd1707f1976e4e385899439857acbfffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: NexAdn <git@nexadn.de>
# Maintainer: javsanpar <javsanpar@riseup.net>
pkgname=abaddon
pkgver=0.2.1
pkgrel=1
pkgdesc='An alternative Discord client made with C++/gtkmm'
url='https://github.com/uowuo/abaddon'
source=("git+https://github.com/uowuo/abaddon#tag=v$pkgver"
$pkgname.desktop)
arch=('x86_64')
license=('GPL3')
makedepends=('git' 'cmake' 'nlohmann-json')
depends=('gtkmm3' 'libhandy' 'spdlog' 'opus' 'libsodium' 'rnnoise')
conflicts=('abaddon')
provides=('abaddon')
sha256sums=('SKIP'
'7840732362b8f2202cf79b7d7c2eb0e2cbd5a83dc45c5fca4609ec15b8bea6df')
prepare () {
cd "$pkgname"
git submodule update --init --filter=tree:0 subprojects/{ixwebsocket,keychain,miniaudio,qrcodegen}
}
build () {
cmake -B build -S "$pkgname"
make -C build
}
package() {
install -Dm755 build/abaddon "$pkgdir"/usr/bin/abaddon
install -Dm644 "$pkgname"/res/css/* -t "$pkgdir"/usr/share/abaddon/css
install -Dm644 "$pkgname"/res/res/sound/* -t "$pkgdir"/usr/share/abaddon/res/sound
rm -r "$pkgname"/res/res/sound/
install -Dm644 "$pkgname"/res/res/* -t "$pkgdir"/usr/share/abaddon/res
install -Dm755 abaddon.desktop \
"$pkgdir"/usr/share/applications/abaddon.desktop
}
|