42 lines
1.2 KiB
Bash
Executable file
42 lines
1.2 KiB
Bash
Executable file
# 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_ENDIAN" = "be" ]; then
|
|
broken="Unsupported tl-schema version -1"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|