summaryrefslogtreecommitdiff
path: root/testing/telegram-tdlib/APKBUILD
blob: a4f28741230c0a657c23d80ac740a06c57788897 (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
# Contributor: j.r <j.r@jugendhacker.de>
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=telegram-tdlib
pkgver=1.8.0
pkgrel=2
pkgdesc="Cross-platform library for building Telegram clients"
url="https://core.telegram.org/tdlib"
arch="all !s390x" # fails to build on big-endian
license="BSL-1.0"
options="!check" # No test suite from upstream
makedepends="cmake openssl-dev>3 zlib-dev gperf linux-headers samurai"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/tdlib/td/archive/v$pkgver.tar.gz"
builddir="$srcdir/td-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX:PATH=/usr

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build

	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="
7992bc295900b4a770ec3316cc5d32eac5ced45d9019d65d56d753875fb07ccaca80db6ed8217472cef9a40ac0bf54b438214728f110f3b1ea62078252740640  telegram-tdlib-1.8.0-2.tar.gz
"