Package Details: ccache-git v3.7.1_844_g0789bc26-1

Git Clone URL: https://aur.archlinux.org/ccache-git.git (read-only, click to copy)
Package Base: ccache-git
Description: a fast compiler cache
Upstream URL: https://ccache.dev
Licenses: GPL3
Conflicts: ccache
Provides: ccache
Submitter: ams1
Maintainer: dg10a
Last Packager: dg10a
Votes: 4
Popularity: 0.191191
First Submitted: 2013-12-10 13:17
Last Updated: 2020-09-29 19:05

Required by (49)

Sources (1)

Latest Comments

1 2 Next › Last »

XeonDead commented on 2020-10-08 07:37

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

Done, thanks.

XeonDead commented on 2020-09-29 10:49

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

Done, thanks.

Hypnotron commented on 2020-08-01 16:54

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

Added, thanks.

arllk commented on 2019-08-11 05:23

add libb2 to the dependencies, it's missing

mydongistiny commented on 2018-12-26 11:07

If anyone is interested I updated the PKGBUILD: https://pastebin.com/MENzABZ9

Kunda commented on 2018-11-24 14:21

This package seems abandoned.

ams1 commented on 2014-11-20 15:37

ccache 3.2 now has all the funky new features, but the community package doesn't have the --sysconfdir fix. I opened bug FS#42858.