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.89
First Submitted: 2013-12-10 13:17
Last Updated: 2020-08-06 06:57

Required by (47)

Sources (1)

Latest Comments

1 2 Next › Last »

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.

ams1 commented on 2014-09-01 14:05

Yeah, ccache has been getting a lot of new features and a lot of them are not released yet. I had not realised that the central conf file was one of them.

v3.1.9_373_g969726d-2 has the configuration change you suggested.

stevenhoneyman commented on 2014-08-30 19:08

Quite strange, but 3.1.9 release does not use a sysconfig directory. The code was in the 'maint' branch since 2011 (!), but only got merged after 3.1.9 was released - in commit f34c3157602aa63cbeef6fdf31cd5c85364b9020

So yes, this git package needs it adding, to correctly support the new feature.

Thanks!

stevenhoneyman commented on 2014-08-30 18:37

Oops forgot to enable notifications for comments! I'll check the behaviour is the same with 3.1.9 stable and file a bug report