Package Details: telegram-tdlib-git 1.8.9-1

Git Clone URL: https://aur.archlinux.org/telegram-tdlib-git.git (read-only, click to copy)
Package Base: telegram-tdlib-git
Description: Cross-platform library for building Telegram clients
Upstream URL: https://core.telegram.org/tdlib
Licenses: boost
Conflicts: telegram-tdlib
Provides: telegram-tdlib
Submitter: foxfromabyss
Maintainer: foxfromabyss
Last Packager: foxfromabyss
Votes: 4
Popularity: 0.017808
First Submitted: 2021-07-24 19:20 (UTC)
Last Updated: 2022-12-29 09:22 (UTC)

Dependencies (7)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

truocolo commented on 2024-01-06 23:26 (UTC) (edited on 2024-01-07 00:15 (UTC) by truocolo)

Hello,

I have built tis on arm so I've updated the style and added the missing depends. The code is on this repo, pkgver is still missing the fix though.

xiota commented on 2023-11-12 13:08 (UTC) (edited on 2023-11-12 23:45 (UTC) by xiota)

  • libtd should be added to provides/conflicts because it shares the same files and upstream project.

  • Current pkgver() is insufficient for -git package because missing revision and hash.

pkgver() {
  cd "td"
  local _regex='^\s*project.*TDLib\s+VERSION\s+([0-9]+\.[0-9]+\.[0-9]+)\s+.*$'
  local _file='CMakeLists.txt'
  local _line=$(grep -Esm1 "$_regex" "$_file")
  local _version=$(sed -E "s@$_regex@\1@" <<< "${_line:?}")
  local _lnum=$(grep -En "$_regex" "$_file" | cut -d':' -f1)
  local _commit=$(git blame -L ${_lnum:?},$_lnum -- "$_file" | awk '{print $1;}')
  local _revision=$(git rev-list --count ${_commit:?}..HEAD)
  local _hash=$(git rev-parse --short HEAD)

  printf "%s.r%s.g%s" "${_version:?}" "${_revision:?}" "${_hash::7}"
}

mk-fg commented on 2022-12-05 00:32 (UTC)

Simplier pkgver() command for Td.h > CMakeLists.txt tweak: grep -oP '(?<=TDLib VERSION )\S+' td/CMakeLists.txt

brighton36 commented on 2022-08-27 16:06 (UTC)

If you're building this for telega.el, at the time of writing, you'll need to compile version 1.8.4, which is commit hash 7eabd8ca60de025e45e99d4e5edd39f4ebd9467e . Simply apply the hclover patch here in the comments. Then, once applied, change the source from "git+https://github.com/tdlib/td.git" to "git+https://github.com/tdlib/td.git#commit=7eabd8ca60de025e45e99d4e5edd39f4ebd9467e". Then run your makepkg -si and you should be good to go.

hclover commented on 2022-07-17 04:04 (UTC)

The version number has been removed from Td.h in recent commits. Here is a patch that uses CMakeLists.txt instead:

diff --git a/PKGBUILD b/PKGBUILD
index fb5df2a..70e51a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Fox archlinux@foxfromabyss.dev

 pkgname=telegram-tdlib-git
-pkgver=1.8.0
+pkgver=1.8.4
 pkgrel=1
 pkgdesc='Cross-platform library for building Telegram clients'
 arch=('i686' 'x86_64' 'armv7h')
@@ -15,7 +15,7 @@ source=("git+https://github.com/tdlib/td.git")
 sha256sums=('SKIP')

 pkgver() {
-  cat td/td/telegram/Td.h | grep TDLIB_VERSION | sed 's/[^0-9,.]*//g'
+  cat td/CMakeLists.txt | grep 'TDLib VERSION' | sed 's/[^0-9,.]*//g'
 }

 build() {

Thaodan commented on 2022-06-05 23:12 (UTC)

Another way is to enable lto fat objects read here: https://archlinux.org/todo/lto-fat-objects/

Thaodan commented on 2022-05-15 21:36 (UTC)

tdlibs static archives break when lto is used. Can you add !lto to options?

foxfromabyss commented on 2021-12-31 16:59 (UTC)

I don't think =${pkgver} gets expanded very well. I am either holding it wrong and would appreciate a helpful nudge, or can just get it in there manually.

dreieck commented on 2021-12-27 17:55 (UTC) (edited on 2021-12-27 17:56 (UTC) by dreieck)

Can you please add =${pkgver} to the telegram-tdlib entry in the provides array?

Package telegram-tdlib-purple-git seems to depend on a specific version, that way dependencies can be specified in a clean way.

foxfromabyss commented on 2021-09-25 18:46 (UTC)

The version you will pull from the -git is always in sync, it's just that the versioning is somewhat stale, as it has to be bumped manually.