blob: d35190ded6724ad7a9132cd4e633d356865b90e6 (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=telegram-tdlib
pkgver=1.4.0
pkgrel=0
pkgdesc="Cross-platform library for building Telegram clients"
url="https://core.telegram.org/tdlib"
arch="all"
license="BSL-1.0"
options="!check" # No test suite from upstream
makedepends="cmake openssl-dev zlib-dev gperf linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tdlib/td/archive/v$pkgver.tar.gz"
builddir="$srcdir/td-$pkgver"
build() {
mkdir build
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr"
make -C build
}
package() {
make -C build install
install -m644 -D -t "$pkgdir/usr/share/licenses/$pkgname" \
LICENSE_1_0.txt
install -m644 -D -t "$pkgdir/usr/share/doc/$pkgname" \
README.md
}
sha512sums="6484d09408afbca2062cc87080b536431a9a6bd4179b220a0335d8aef591de5d35c99906e8d67c0d8c684b02b63b82d12bd064dc265d2416561c1136051eb4b1 telegram-tdlib-1.4.0.tar.gz"
|