[arch-commits] Commit in (sccache sccache/trunk sccache/trunk/PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Tue Aug 18 09:09:02 UTC 2020


    Date: Tuesday, August 18, 2020 @ 09:09:02
  Author: alucryd
Revision: 683798

add sccache

Added:
  sccache/
  sccache/trunk/
  sccache/trunk/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

Added: sccache/trunk/PKGBUILD
===================================================================
--- sccache/trunk/PKGBUILD	                        (rev 0)
+++ sccache/trunk/PKGBUILD	2020-08-18 09:09:02 UTC (rev 683798)
@@ -0,0 +1,71 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Chocobo1 <chocobo1 at archlinux.net>
+# Contributor: Jean Lucas <jean at 4ray.co>
+
+pkgname=sccache
+pkgver=0.2.13
+pkgrel=1
+pkgdesc='Shared compilation cache'
+arch=(x86_64)
+url=https://github.com/mozilla/sccache
+license=(Apache)
+depends=(
+  gcc-libs
+  glibc
+  openssl
+  zlib
+)
+makedepends=(
+  git
+  rust
+)
+optdepends=(
+  'memcached: Memcached support'
+  'redis: Redis support'
+)
+_tag=8916253e51cdd710dc70d0616235ace36e731f98
+source=(git+https://github.com/mozilla/sccache.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+  cd sccache
+
+  git describe --tags
+}
+
+prepare() {
+  cargo fetch \
+    --locked \
+    --manifest-path sccache/Cargo.toml
+}
+
+build() {
+  cargo build \
+    --release \
+    --frozen \
+    --manifest-path sccache/Cargo.toml \
+    --features all \
+    --features native-zlib
+}
+
+check() {
+  cargo test \
+    --release \
+    --frozen \
+    --manifest-path sccache/Cargo.toml \
+    --features all \
+    --features native-zlib
+}
+
+package() {
+  cargo install \
+    --frozen \
+    --offline \
+    --no-track \
+    --path sccache \
+    --root "${pkgdir}"/usr \
+    --features all \
+    --features native-zlib
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list