# Contributor: Oleg Titov # Maintainer: Oleg Titov 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 !s390x" 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"