[arch-commits] Commit in ccache/repos/community-x86_64 (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Jan 10 03:18:55 UTC 2021


    Date: Sunday, January 10, 2021 @ 03:18:55
  Author: anthraxx
Revision: 816876

archrelease: copy trunk to community-x86_64

Added:
  ccache/repos/community-x86_64/PKGBUILD
    (from rev 816875, ccache/trunk/PKGBUILD)
Deleted:
  ccache/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  107 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 56 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-10 03:18:51 UTC (rev 816875)
+++ PKGBUILD	2021-01-10 03:18:55 UTC (rev 816876)
@@ -1,51 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
-
-pkgname=ccache
-pkgver=3.7.11
-pkgrel=1
-pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations'
-url='https://ccache.samba.org/'
-arch=('x86_64')
-license=('GPL3')
-depends=('glibc' 'zlib')
-source=(https://github.com/ccache/ccache/releases/download/v${pkgver}/ccache-${pkgver}.tar.xz{,.asc})
-validpgpkeys=('5A939A71A46792CF57866A51996DDA075594ADB8') # Joel Rosdahl <joel at rosdahl.net>
-sha512sums=('47b71b3ab4b89bf9b6f6d15941c22d2207b369922f51f9a8fbf4e86554325053dccce669e1c1ed3c0019a7e0a3d610f399e52d3fee68b56111aa7c1b24132c11'
-            'SKIP')
-b2sums=('46fc5d65d6224bb796db7632b35ccca1089e5fed36eeb2ba231cf4c1aaa94be10bf0504f6ef565ce11673e527e09dee64583a764062ca7fea38364d790dd8cc1'
-        'SKIP')
-
-build() {
-  cd ${pkgname}-${pkgver}
-  ./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc
-  make
-}
-
-check() {
-  cd ${pkgname}-${pkgver}
-  make check
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-
-  install -Dm 755 ccache -t "${pkgdir}/usr/bin"
-  install -Dm 644 doc/ccache.1 -t "${pkgdir}/usr/share/man/man1"
-  install -Dm 644 doc/{AUTHORS,MANUAL,NEWS}.adoc README.md -t "${pkgdir}/usr/share/doc/${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
-}
-
-# vim: ts=2 sw=2 et:

Copied: ccache/repos/community-x86_64/PKGBUILD (from rev 816875, ccache/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-10 03:18:55 UTC (rev 816876)
@@ -0,0 +1,56 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=ccache
+pkgver=4.1
+pkgrel=1
+pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations'
+url='https://ccache.dev/'
+arch=('x86_64')
+license=('GPL3')
+depends=('glibc' 'gcc-libs' 'zlib' 'zstd')
+makedepends=('cmake' 'asciidoc' 'perl')
+source=(https://github.com/ccache/ccache/releases/download/v${pkgver}/ccache-${pkgver}.tar.xz{,.asc})
+validpgpkeys=('5A939A71A46792CF57866A51996DDA075594ADB8') # Joel Rosdahl <joel at rosdahl.net>
+sha512sums=('e80075eeea3fef8215de0a793e02381bfb59d7e74237fa34a49306047c60f0de0e678396ad3a9e5d86d3ad2aa21bbe29c7f0055f06b3ba2470f6895ce2eedd7b'
+            'SKIP')
+b2sums=('265ed6cd9602a04db0fadf63266d0fe1e78a74c69a27f05854a287e4048934d6afd63e71987bc525217782075c1a158601c400f3418caa0eb9730f34275bd08c'
+        'SKIP')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -Wno-dev \
+    -B build \
+    -S .
+  make VERBOSE=1 -C build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make VERBOSE=1 check -C build
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install -C build
+  make DESTDIR="${pkgdir}" install -C build/doc
+
+  install -Dm 644 doc/*.md doc/*.adoc -t "${pkgdir}/usr/share/doc/${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
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list