[arch-commits] Commit in sccache (3 files)
Maxime Gauduin
alucryd at archlinux.org
Tue Aug 18 09:09:13 UTC 2020
Date: Tuesday, August 18, 2020 @ 09:09:13
Author: alucryd
Revision: 683799
archrelease: copy trunk to community-x86_64
Added:
sccache/repos/
sccache/repos/community-x86_64/
sccache/repos/community-x86_64/PKGBUILD
(from rev 683798, sccache/trunk/PKGBUILD)
----------+
PKGBUILD | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
Copied: sccache/repos/community-x86_64/PKGBUILD (from rev 683798, sccache/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2020-08-18 09:09:13 UTC (rev 683799)
@@ -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