Skip to content
Snippets Groups Projects
Commit 2e9e5ce3 authored by Maxime Gauduin's avatar Maxime Gauduin
Browse files

add sccache

parents
No related branches found
Tags 0.22.0-1
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Chocobo1 <chocobo1@archlinux.net>
# Contributor: Jean Lucas <jean@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:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment