From 05fb0700298ebe16e7bdb40dd5b040464c432c6b 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.6 --- common/shlibs | 1 + srcpkgs/libtd-devel | 1 + srcpkgs/libtd/template | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 srcpkgs/libtd-devel create mode 100755 srcpkgs/libtd/template diff --git a/common/shlibs b/common/shlibs index a1abc82974e..57ca29f047c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3977,3 +3977,4 @@ libptexenc.so.1 texlive-20200406_1 libdolphinvcs.so.5 dolphin-20.04.3_1 libcglm.so.0 cglm-0.7.6_1 libfcft.so.3 fcft-2.2.2_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..d4fc8614a26 --- /dev/null +++ b/srcpkgs/libtd/template @@ -0,0 +1,38 @@ +# Template file for 'libtd' +pkgname=libtd +version=1.6.6 +revision=1 +_commit=c78fbe4bc5e31395e08f916816704e8051f27296 +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=adb84e39d95c3cde8a70d47410acd91af3953fc6ebbca152a1afbef9c7135e1e + +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/include + vmove usr/lib/cmake + } +}