# -*- 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 5b974c298d4ed551d3ad2c061ad7b8280d137c7e
name                tdlib
version             1.8.41
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  69bcf10deb87ed58d252e0494ec6e05a368edba8 \
                    sha256  eaa8618a9cade001ea4adf0d9175c01ab5e5ee882fa01800f2adb36366993a06 \
                    size    5304204

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+)*)";}
