Package Details: tdf-git 20240605.r26.f893ecb-1

Git Clone URL: https://aur.archlinux.org/tdf-git.git (read-only, click to copy)
Package Base: tdf-git
Description: A terminal-based PDF viewer
Upstream URL: https://github.com/itsjunetime/tdf
Licenses: MPL-2.0
Conflicts: tdf
Provides: tdf
Submitter: prurigro
Maintainer: prurigro
Last Packager: prurigro
Votes: 0
Popularity: 0.000000
First Submitted: 2024-05-30 00:54 (UTC)
Last Updated: 2024-06-07 15:23 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

alerque commented on 2024-11-28 15:17 (UTC)

This package needs to disable LTO or fix the CFLAGS in order to build successfully. Here is a patch that can be saved and applied to this repository with git am file.patch. Make sure you copy the extra blank line at the end of this code block as it is a required part of the patch format:

From e5278496e8b1c3f09ecd10c682177f70232291d3 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 28 Nov 2024 18:16:16 +0300
Subject: [PATCH] Fix LTO options

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO | 2 +-
 PKGBUILD | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 493c850..90d9b17 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = tdf-git
    pkgdesc = A terminal-based PDF viewer
-   pkgver = 20240605.r26.f893ecb
+   pkgver = 20241127.r52.65e1f1a
    pkgrel = 1
    url = https://github.com/itsjunetime/tdf
    arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 02a7e46..581a20f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 _pkgname=tdf
 pkgname=${_pkgname}-git
-pkgver=20240605.r26.f893ecb
+pkgver=20241127.r52.65e1f1a
 pkgrel=1
 pkgdesc='A terminal-based PDF viewer'
 url='https://github.com/itsjunetime/tdf'
@@ -17,11 +17,14 @@ sha512sums=('SKIP')

 pkgver() {
   cd $_pkgname
-  printf "%s.r%s.%s" "$(git show -s --format=%ci main | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  printf "%s.r%s.%s" \
+    "$(git show -s --format=%ci main | sed 's/\ .*//g;s/-//g')" \
+    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 build() {
   cd $_pkgname
+  CFLAGS+=' -ffat-lto-objects'
   cargo build --release
 }

-- 
2.47.1