# Maintainer: Andrei K. # Contributor: j.r # Contributor: Daniil Kovalev # Contributor: Felix Serrano Blanco pkgname=libtd pkgver=1.8.25 pkgrel=1 pkgdesc="TDLib (Telegram Database library), a cross-platform library for building Telegram clients" arch=('x86_64') url='https://core.telegram.org/tdlib' license=('BSL-1.0') depends=( 'openssl' 'zlib' 'gcc-libs' ) makedepends=( 'git' 'clang>=3.4' 'cmake>=3.0.2' 'gperf' 'php' ) provides=('telegram-tdlib' 'libtdjson.so') conflicts=('telegram-tdlib') _commit=d93a99e3351db82573d765ce4f5e84714c277518 source=("$pkgname::git+https://github.com/tdlib/td.git#commit=$_commit") md5sums=('SKIP') build() { cd "$srcdir" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -B build -S "$pkgname" -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" -Wno-dev cmake --build build --target prepare_cross_compiling cd "$pkgname" php SplitSource.php cd .. cmake --build build --target all } package() { cd "$srcdir" cmake --build build --target install }