blob: ed3ec2684cdcb90f06c53ffb5c129973f74b8251 (
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
|
# Maintainer: Ilya Fedin <fedin-ilja2010@ya.ru>
# Contributor: Auteiy <dmitry@auteiy.me>
pkgname=kotatogram-desktop
pkgver=1.3.4
pkgrel=4
pkgdesc="Kotatogram – experimental Telegram Desktop fork"
arch=(x86_64)
url="https://kotatogram.github.io"
license=(GPL3)
depends=(
qt5-base
qt5-imageformats
ffmpeg
openal
xz
lz4
xxhash
zlib
minizip
openssl
libdbusmenu-qt5
hunspell
hicolor-icon-theme
)
makedepends=(
git
python
cmake
ninja
tl-expected
range-v3
)
optdepends=(
'ttf-opensans: default Open Sans font family'
)
conflicts=('kotatogram-desktop-bin' 'kotatogram-desktop-dynamic-bin')
source=(
"https://github.com/kotatogram/${pkgname}/releases/download/k${pkgver}/${pkgname}-${pkgver}-full.tar.gz"
"https://github.com/telegramdesktop/tdesktop/commit/6e9eddabfdb8b2d870f912875325ed452144b10e.patch"
"telegram-desktop-qt5.15.patch"
"0001-Add-an-option-to-hide-messages-from-blocked-users-in.patch"
)
sha512sums=('f0255e1bcbf1703c684e3c71392156002456a988f4128107e0181b4f4b9956073c29c27ff19d8416b19b3d836da999b39a421bd9755683013eec71ff51104f38'
'0bdee4123ae80bac0a4658dc49f27f09ec80ff0a09ac4cf8e03848ca145fa531f32fd7bfb98a51819c277ca684262bf464ddf3280edc5c04b5005405859c4bfc'
'6bbe0583103d575a1413141799985c7c7b590d8a9856c727320ce322679a3d38343a144c314eee54fa9776c8f3a084627a333e6860d1b8cb8f496b1702070ac0'
'add35207d3a2772b3886f63d81751551e7ad5b6dac8ca3be4dc7bec6f126f04deaa4013d01805b524fbcdcfe7cacd94fa92c4583a62e7bd78472801d9beeb591')
prepare() {
cd ${pkgname}-$pkgver-full
patch -p1 < ${srcdir}/telegram-desktop-qt5.15.patch
patch -p1 < ${srcdir}/0001-Add-an-option-to-hide-messages-from-blocked-users-in.patch
patch -p1 < ${srcdir}/6e9eddabfdb8b2d870f912875325ed452144b10e.patch
}
build() {
cd ${pkgname}-${pkgver}-full
cmake -B build -G Ninja . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DTDESKTOP_API_TEST=ON \
-DDESKTOP_APP_USE_PACKAGED_GSL=OFF \
-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
-DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF \
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
cmake --build build
}
package() {
cd ${pkgname}-${pkgver}-full
DESTDIR="$pkgdir" cmake --install build
}
|