Package Details: clang-include-graph-git 0.2.0-1

Git Clone URL: https://aur.archlinux.org/clang-include-graph-git.git (read-only, click to copy)
Package Base: clang-include-graph-git
Description: A tool to generate include dependency graphs for C/C++ projects.
Upstream URL: https://github.com/bkryza/clang-include-graph
Licenses: MIT
Submitter: 0_byte
Maintainer: 0_byte
Last Packager: 0_byte
Votes: 0
Popularity: 0.000000
First Submitted: 2025-09-07 13:41 (UTC)
Last Updated: 2026-03-07 16:35 (UTC)

Latest Comments

0_byte commented on 2026-03-07 16:40 (UTC)

@davispuh thanks for the info, your changes were implemented.

davispuh commented on 2026-03-07 15:19 (UTC)

This PKGBUILD is broken:

==> Extracting sources...
  -> Extracting clang-include-graph-git-0.2.0.tar.gz with bsdtar
==> Starting prepare()...
PKGBUILD: line 15: cd: src/clang-include-graph-git-0.2.0: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

Also implementation is wrong. -git packages should build from the main branch and not specific version. For released version package should be named simply as clang-include-graph.

Here is patch to fix current PKBUILD for proper `git version:

diff --git a/PKGBUILD b/PKGBUILD
index ab5a579..479b9b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,18 +7,23 @@ url="https://github.com/bkryza/clang-include-graph"
 license=('MIT')
 depends=('gcc-libs' 'glibc' 'clang' 'boost-libs')
 makedepends=('git' 'cmake' 'boost' 'llvm')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bkryza/clang-include-graph/archive/refs/tags/${pkgver}.tar.gz")
+source=("git+https://github.com/bkryza/clang-include-graph.git")
 sha256sums=('SKIP')

+pkgver() {
+  cd "${srcdir}/clang-include-graph"
+  git describe --long --tags | sed 's/-/.r/;s/-/./'
+}
+
 prepare() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/clang-include-graph"

   # patch to make tests conditional
   sed -i 's/^add_subdirectory(tests)$/if(BUILD_TESTS)\nadd_subdirectory(tests)\nendif()/' CMakeLists.txt
 }

 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/clang-include-graph"

   cmake -B build \
     -DCMAKE_BUILD_TYPE=Release \
@@ -29,7 +33,7 @@ build() {
 }

 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/clang-include-graph"

   # Install the main binary manually
   install -Dm755 build/clang-include-graph "${pkgdir}/usr/bin/clang-include-graph"

pkgver() function will always automatically fix package's version to be like 0.2.0.r8.g7dc6ca5 so it's not needed to updated manually.