summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11ae6456a679bc8942903717744dfcbf3c2db462 (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
# Maintainer: Ilya Fedin <ilya-fedin@outlook.com>

pkgname=libtgvoip
pkgver=2.4.4
pkgrel=6
pkgdesc="VoIP library for Telegram clients"
arch=(x86_64)
url="https://github.com/telegramdesktop/libtgvoip"
license=(Unlicense)
makedepends=(alsa-lib libpulse)
depends=(openssl opus)
optdepends=(
	'alsa-lib: for alsa support'
	'libpulse: for pulseaudio support'
)
_commit="7563a96b8f8e86b7a5fd1ce783388adf29bf4cf9"
source=(
	"https://github.com/telegramdesktop/libtgvoip/archive/${_commit}.zip"
	"https://github.com/telegramdesktop/libtgvoip/commit/11bc9089ad136b713190e0e8f5b484cba9ad495c.patch"
	"https://github.com/telegramdesktop/libtgvoip/commit/6e82b6e45664c1f80b9039256c99bebc76d34672.patch"
)

sha512sums=('0a38c88cc7c26049e7764e7ce9e91cda9c7381f76afccbe051aac52cd330d8c01cfab3c092a1a8e9b7296d4f4630b7b95a881bd98bd603db245df4cb5c8195e0'
            '829b552aae4b94bdee34852759ee6cf3dfc4c11f6d5926c5edc8a2a4313070a6676986dd57e1236202368d621c3b4ce5fa5218355eeb98e962a850a07518e132'
            '9891e89adafb58c0bdf067150ab09b6a234e05524ee26f72da87a2e2862681ce62dc391545d43e432dc2be772e0493b0874f2011d77aca7751cab8988b498ac8')

prepare() {
	cd "$srcdir/$pkgname-${_commit}"
	patch -p1 < "$srcdir/11bc9089ad136b713190e0e8f5b484cba9ad495c.patch"
	patch -R -p1 < "$srcdir/6e82b6e45664c1f80b9039256c99bebc76d34672.patch"
}

build() {
	cd "$srcdir/$pkgname-${_commit}"
	autoreconf -i
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname-${_commit}"
	make DESTDIR="$pkgdir" install
}