blob: 985329c3cf0322a1d229fa77dbe3f90c1d860296 (
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
|
# Maintainer: Aanok <aanok.aur@gmail.com>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: therealfarfetchd
pkgname=ripcord
pkgver=0.4.29
pkgrel=1
pkgdesc='Qt-based Discord and Slack client'
arch=(x86_64)
url='https://cancel.fm/ripcord/'
license=('LicenseRef-ripcord')
depends=(
expat
freetype2
gcc-libs
glib2
glibc
harfbuzz
libdrm
libgl
libx11
libxcb
zlib
)
options=(!strip)
_file="Ripcord-${pkgver}-x86_64.AppImage"
source=(
"https://cancel.fm/dl/${_file}"{,.asc}
LICENSE
)
sha256sums=('e320cb3c4043b0f296b4bc1da664b29776f95c2c0b02bdbf115b4d46b1669899'
'SKIP'
'd7b2d483acceaebebfa068223efd8fb5e0f5d66f642fa234484ca50974c9fa2c')
validpgpkeys=('ABBAD1CB484F53024CF5868B69332F9203F21F5C')
prepare() {
chmod +x "${_file}"
"./${_file}" --appimage-extract &> /dev/null
}
package() {
# Directories
install -d "${pkgdir}/usr/bin/"
install -d "${pkgdir}/usr/lib/ripcord/"
install -d "${pkgdir}/usr/share/applications/"
install -d "${pkgdir}/usr/share/icons/"
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
# Icon
install -m644 "squashfs-root/Ripcord_Icon.png" "${pkgdir}/usr/share/icons/"
# .desktop file
sed -i 's/Exec=Ripcord/Exec=ripcord/' "squashfs-root/Ripcord.desktop"
install -m644 "squashfs-root/Ripcord.desktop" "${pkgdir}/usr/share/applications"
# License
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Application
chmod 755 -R squashfs-root
mv squashfs-root/* "${pkgdir}/usr/lib/ripcord/"
ln -s "/usr/lib/ripcord/Ripcord" "${pkgdir}/usr/bin/ripcord"
}
|