Package Details: ccache-git 4.8.2.r4.2737d79e-1

Git Clone URL: https://aur.archlinux.org/ccache-git.git (read-only, click to copy)
Package Base: ccache-git
Description: Compiler cache that speeds up recompilation by caching previous compilations
Upstream URL: https://ccache.dev
Licenses: GPL3
Conflicts: ccache
Provides: ccache
Submitter: ams1
Maintainer: eclairevoyant
Last Packager: eclairevoyant
Votes: 4
Popularity: 0.000000
First Submitted: 2013-12-10 13:17 (UTC)
Last Updated: 2023-06-26 20:29 (UTC)

Required by (88)

Sources (1)

Latest Comments

1 2 Next › Last »

Petkr commented on 2022-08-07 10:20 (UTC)

https://github.com/ccache/ccache/commit/b96ca763c453a602b5516b4b9ca5e2829528e318 The documentation generation now needs an option passed.

superboringdev commented on 2022-06-20 20:35 (UTC)

Please add hiredis to dependencies

sampa82 commented on 2021-06-10 04:17 (UTC)

Currently fails to build if CUDA is installed.

XeonDead commented on 2020-10-08 07:37 (UTC)

Following this commit, ccache manpage was Capitalized: https://github.com/ccache/ccache/commit/a684bb356c9f0d6154f19ecefcc348167b975e5c

diff --git a/PKGBUILD b/PKGBUILD
index f05f9e2..578f113 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,7 +38,7 @@ package() {
   cd ${srcdir}/${_pkgname}

   install -Dm 755 build/ccache -t "${pkgdir}/usr/bin"
-  install -Dm 644 build/doc/ccache.1 -t "${pkgdir}/usr/share/man/man1"
+  install -Dm 644 build/doc/Ccache.1 -t "${pkgdir}/usr/share/man/man1"
   install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"
   install -Dm 644 build/doc/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}"

dg10a commented on 2020-09-29 19:06 (UTC)

Done, thanks.

XeonDead commented on 2020-09-29 10:49 (UTC) (edited on 2020-09-29 10:49 (UTC) by XeonDead)

Following this commit, documentation and manpage targets in cmake were changed: https://github.com/ccache/ccache/commit/de0baf709f556a31f903a99ec407501e1c0a758a

Following changes in PKGBUILD are needed:

diff --git a/PKGBUILD b/PKGBUILD
index c46cdb9..8f4ec4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,8 +25,8 @@ build() {
       -DCMAKE_INSTALL_PREFIX='/usr' \
       -DCMAKE_INSTALL_SYSCONFDIR='/etc'
   make -C build
-  make -C build documentation
-  make -C build manpage
+  make -C build doc-html
+  make -C build doc-man-page
 }

check() { @@ -38,9 +38,9 @@ package() { cd ${srcdir}/${_pkgname}

install -Dm 755 build/ccache -t "${pkgdir}/usr/bin" - install -Dm 644 build/ccache.1 -t "${pkgdir}/usr/share/man/man1" + install -Dm 644 build/doc/ccache.1 -t "${pkgdir}/usr/share/man/man1" install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html README.md -t "${pkgdir}/usr/share/doc/${_pkgname}" - install -Dm 644 build/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}" + install -Dm 644 build/doc/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}"

install -d "${pkgdir}/usr/lib/ccache/bin" local _prog

dg10a commented on 2020-08-06 06:57 (UTC)

Done, thanks.

Hypnotron commented on 2020-08-01 16:54 (UTC) (edited on 2020-08-01 16:57 (UTC) by Hypnotron)

ccache seems to have deprecated autotools, so the PKGBUILD needs to switch to CMake:

_pkgname=ccache
pkgname=${_pkgname}-git
pkgver=v3.7.1_829_g106a1d22
pkgrel=1
pkgdesc="a fast compiler cache"
arch=('i686' 'x86_64')
url="https://ccache.dev"
license=('GPL3')
depends=('zlib' 'libb2')
makedepends=('cmake' 'git' 'asciidoc')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+https://github.com/ccache/ccache.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe | sed 's/[- ]/_/g'
}

build() {
  cd ${srcdir}/${_pkgname}
  cmake -B build -S . \
      -DCMAKE_BUILD_TYPE='None' \
      -DCMAKE_INSTALL_PREFIX='/usr' \
      -DCMAKE_INSTALL_SYSCONFDIR='/etc'
  make -C build
  make -C build documentation
  make -C build manpage
}

check() {
  cd ${srcdir}/${_pkgname}
  make -C build check
}

package() {
  cd ${srcdir}/${_pkgname}

  install -Dm 755 build/ccache -t "${pkgdir}/usr/bin"
  install -Dm 644 build/ccache.1 -t "${pkgdir}/usr/share/man/man1"
  install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html README.md \
      -t "${pkgdir}/usr/share/doc/${_pkgname}"
  install -Dm 644 build/LICENSE.html LICENSE.adoc \
      -t "${pkgdir}/usr/share/licenses/${_pkgname}"

  install -d "${pkgdir}/usr/lib/ccache/bin"
  local _prog
  for _prog in gcc g++ c++; do
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${CHOST}-$_prog"
  done
  for _prog in cc clang clang++; do
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"
  done
}

I guess CMake should be added as a makedepend in .SRCINFO as well.

dg10a commented on 2019-08-19 17:40 (UTC)

Added, thanks.

arllk commented on 2019-08-11 05:23 (UTC)

add libb2 to the dependencies, it's missing