void-packages/srcpkgs/libtd/template

38 lines
1.0 KiB
Bash

# Template file for 'libtd'
pkgname=libtd
version=1.8.0
revision=2
build_style=cmake
build_helper=qemu
hostmakedepends="gperf"
makedepends="openssl-devel zlib-devel"
short_desc="Cross-platform library for building Telegram clients"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSL-1.0"
homepage="https://core.telegram.org/tdlib"
distfiles="https://github.com/tdlib/td/archive/v${version}.tar.gz"
checksum=30d560205fe82fb811cd57a8fcbc7ac853a5b6195e9cb9e6ff142f5e2d8be217
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="Unsupported tl-schema version -1"
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/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}