blob: a393586251829ab198d165b56d2685a0089c3d14 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: nissen22 <bernhardnorneslotsberg at gmail dot com>
pkgname=ripcord-arch-libs
pkgver=0.4.29
pkgrel=5
pkgdesc='Qt-based Discord and Slack client. Modified to run on system libraries for Wayland support.'
arch=(x86_64)
url='https://cancel.fm/ripcord/'
license=('LicenseRef-ripcord')
depends=(
# libsodium
funchook
gcc-libs
glibc
libgl
libx11
libxss
opus
qt5-base
qt5-imageformats
qt5-multimedia
qt5-svg
qt5-websockets
zlib
)
makedepends=(git)
provides=(ripcord)
conflicts=(ripcord)
options=(!strip)
_file="Ripcord-${pkgver}-x86_64.AppImage"
source=(
"https://cancel.fm/dl/${_file}"{,.asc}
'git+https://github.com/geniiii/ripcord-audio-hook#branch=linux'
LICENSE
)
sha256sums=('e320cb3c4043b0f296b4bc1da664b29776f95c2c0b02bdbf115b4d46b1669899'
'SKIP'
'SKIP'
'd7b2d483acceaebebfa068223efd8fb5e0f5d66f642fa234484ca50974c9fa2c')
validpgpkeys=('ABBAD1CB484F53024CF5868B69332F9203F21F5C')
prepare() {
chmod +x "${_file}"
"./${_file}" --appimage-extract &> /dev/null
}
build() {
cd ripcord-audio-hook
gcc -shared -fPIC -o hook.so hook.c -ldl -lfunchook
}
package() {
# Directories
install -Dm755 squashfs-root/lib/libsodium.so.18 -t "${pkgdir}/usr/lib/ripcord/lib"
rm -rf squashfs-root/lib
rm -rf squashfs-root/plugins
install -dm755 "${pkgdir}/usr/bin/"
install -dm755 "${pkgdir}/usr/lib/ripcord/"
install -dm755 "${pkgdir}/usr/share/applications/"
install -dm755 "${pkgdir}/usr/share/icons/"
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
# Icon
install -Dm644 squashfs-root/Ripcord_Icon.png "${pkgdir}/usr/share/icons/"
# .desktop file
sed -i 's/Exec=Ripcord/Exec=env\ LD_PRELOAD=\/usr\/lib\/ripcord\/hook\.so QT_QPA_PLATFORM_PLUGIN_PATH=\/usr\/lib\/qt\/plugins\ ripcord/g' squashfs-root/Ripcord.desktop
install -Dm644 squashfs-root/Ripcord.desktop -t "${pkgdir}"/usr/share/applications
# License
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
# Application
chmod 755 -R squashfs-root
mv squashfs-root/* "${pkgdir}/usr/lib/ripcord/"
ln -s /usr/lib/ripcord/lib/libsodium.so.18 "${pkgdir}/usr/lib/libsodium.so.18"
ln -s /usr/lib/ripcord/Ripcord "${pkgdir}/usr/bin/ripcord"
# Hook
install -Dm755 ripcord-audio-hook/hook.so -t "${pkgdir}/usr/lib/ripcord/"
}
|