From ba731c9066a65ddc010dd9cd0d1ff03ec6c0c000 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Thu, 16 Jul 2020 14:03:58 +0300 Subject: [PATCH] New package: libtd-1.6.7 --- common/shlibs | 1 + srcpkgs/libtd-devel | 1 + srcpkgs/libtd/template | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 120000 srcpkgs/libtd-devel create mode 100755 srcpkgs/libtd/template diff --git a/common/shlibs b/common/shlibs index 2a6f351fb2d..f1c78caea45 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3978,3 +3978,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.6 libtd-1.6.6_1 diff --git a/srcpkgs/libtd-devel b/srcpkgs/libtd-devel new file mode 120000 index 00000000000..ee1a79b2bad --- /dev/null +++ b/srcpkgs/libtd-devel @@ -0,0 +1 @@ +libtd \ No newline at end of file diff --git a/srcpkgs/libtd/template b/srcpkgs/libtd/template new file mode 100755 index 00000000000..4b04f00a75b --- /dev/null +++ b/srcpkgs/libtd/template @@ -0,0 +1,39 @@ +# Template file for 'libtd' +pkgname=libtd +version=1.6.7 +revision=1 +_commit=48a219041a88d246753fc911fb9fcf6d139ef98b +wrksrc="td-${_commit}" +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 " +license="BSL-1.0" +homepage="https://core.telegram.org/tdlib" +distfiles="https://github.com/tdlib/td/archive/${_commit}.tar.gz" +checksum=b56acc89b30d9988b75072e153cb64875687c5371aaa07dd44c49a3a51266741 + +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 + } +}