39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'libtd'
|
|
pkgname=libtd
|
|
version=1.8.61
|
|
revision=1
|
|
_td_hash=11e254af695060d8890024dd7faa1cc2d6685ef8
|
|
build_style=cmake
|
|
build_helper=qemu
|
|
hostmakedepends="gperf"
|
|
makedepends="openssl-devel zlib-devel"
|
|
short_desc="Cross-platform library for building Telegram clients"
|
|
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
|
|
license="BSL-1.0"
|
|
homepage="https://core.telegram.org/tdlib"
|
|
distfiles="https://github.com/tdlib/td/archive/${_td_hash}.tar.gz>libtd-${version}.tar.gz"
|
|
checksum=5ef74a08be2bd733d541b0fe78d8287f971e18af31c997872a62a6910873d75a
|
|
|
|
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"
|
|
}
|
|
}
|