mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: j.r <j.r@jugendhacker.de>
|
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Maria Lisina <sekoohaka.sarisan@gmail.com>
|
|
pkgname=telegram-tdlib
|
|
pkgver=1.8.46
|
|
pkgrel=0
|
|
# they don't tag releases
|
|
_gitrev=207f3be7b58b2a2b9f0a066b5b6ef18782b8b517
|
|
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"
|
|
makedepends="cmake gperf linux-headers openssl-dev samurai zlib-dev"
|
|
subpackages="$pkgname-static $pkgname-dev"
|
|
source="td-$_gitrev.tar.gz::https://github.com/tdlib/td/archive/$_gitrev.tar.gz"
|
|
|
|
builddir="$srcdir/td-$_gitrev"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
bd67be22046b343744ec9475dbfa18077e30f107108e6a508fca1f414866cdcda663408ef384389892b3821d57ca45feb9e187599658a357fa29a2cd1f628ee1 td-207f3be7b58b2a2b9f0a066b5b6ef18782b8b517.tar.gz
|
|
"
|