New package: libtd-1.6.0

This commit is contained in:
Ivan Sokolov 2020-07-16 14:03:58 +03:00 committed by Piotr
parent 43ae6e6fea
commit 2a0b50e2c2
3 changed files with 40 additions and 0 deletions

View file

@ -3980,3 +3980,4 @@ libcglm.so.0 cglm-0.7.6_1
libfcft.so.3 fcft-2.2.2_1
libaml.so.0 aml-0.1.0_1
libneatvnc.so.0 neatvnc-0.2.0_1
libtdjson.so.1.6.0 libtd-1.6.0_1

1
srcpkgs/libtd-devel Symbolic link
View file

@ -0,0 +1 @@
libtd

38
srcpkgs/libtd/template Executable file
View file

@ -0,0 +1,38 @@
# Template file for 'libtd'
pkgname=libtd
version=1.6.0
revision=1
wrksrc="td-${version}"
build_style=cmake
build_helper=qemu
hostmakedepends="gperf"
makedepends="libressl-devel zlib-devel"
short_desc="Cross-platform library for building Telegram clients"
maintainer="Ivan Sokolov <ivan-p-sokolov@ya.ru>"
license="BSL-1.0"
homepage="https://core.telegram.org/tdlib"
distfiles="https://github.com/tdlib/td/archive/v${version}.tar.gz"
checksum=9dce57a96f9d4bac8f99aab13ef5cbf6fed04b234a5d22dfa7ef7dce06ea43f8
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
makedepends+=" libatomic-devel"
fi
pre_configure() {
vsed -e 's/NOT CMAKE_CROSSCOMPILING/YES/g' -i CMakeLists.txt \
-i td/generate/CMakeLists.txt -i tdactor/CMakeLists.txt \
-i tddb/CMakeLists.txt -i tdutils/CMakeLists.txt \
-i tdutils/generate/CMakeLists.txt -i test/CMakeLists.txt
}
libtd-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/cmake
}
}