diff --git a/common/shlibs b/common/shlibs index 728d5c4f0be..2705f73b0d5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 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..4646b86a95e --- /dev/null +++ b/srcpkgs/libtd/template @@ -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 " +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 + } +}