# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1

# The tdlib authors do not set tags for minor versions,
# but we could reuse the versioning from nixpkgs.
# https://raw.githubusercontent.com/NixOS/nixpkgs/refs/heads/nixos-unstable/pkgs/by-name/td/tdlib/package.nix
github.setup        tdlib td a8f21f5230172634becc1739050ef23ecd6ea291
name                tdlib
version             1.8.65
categories          devel
license             Boost-1
maintainers         {l2dy @l2dy} openmaintainer
homepage            https://core.telegram.org/tdlib

# https://github.com/tdlib/td/issues/364
supported_archs     arm64 i386 x86_64

description         Cross-platform library for building Telegram clients
long_description    TDLib (Telegram Database library) is a cross-platform \
                    library for building Telegram clients.

checksums           rmd160  94e1cbb230d25ec25de2ad41c5f010a5aa32a160 \
                    sha256  6ce3c64a811391d6d6c6f179cfd11ea8b4c72b701185e838eb8e854bebf7495b \
                    size    5747439

github.tarball_from archive

livecheck.type      regex
livecheck.version   ${version}
livecheck.url       "https://raw.githubusercontent.com/NixOS/nixpkgs/refs/heads/nixos-unstable/pkgs/by-name/td/tdlib/package.nix"
livecheck.regex     {version = "(\d+(?:\.\d+)*)";}
