ccache: 4.0

This commit is contained in:
Dylan Araps 2020-10-19 07:57:38 +03:00
parent 08a65b805d
commit 1bb480ad71
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
5 changed files with 21 additions and 15 deletions

View File

@ -1,21 +1,27 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
export DESTDIR="$1"
export CFLAGS="$CFLAGS -static"
export CXXFLAGS="$CXXFLAGS -static"
make
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=OFF \
-DZSTD_LIBRARY=/usr/lib/libzstd.a
install -Dm 755 ccache "$1/usr/bin/ccache"
install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1"
cmake --build build
cmake --install build
mkdir -p "$1/usr/lib/ccache/bin"
host=$(cc -dumpmachine)
for link in cc gcc g++ cpp c++ \
"$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do
for link in \
cc "$host-cc" \
gcc "$host-gcc" \
g++ "$host-g++" \
cpp "$host-cpp" \
c++ "$host-c++"
do
ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
done

View File

@ -1 +1 @@
a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400
ac1b82fe0a5e39905945c4d68fcb24bd0f32344869faf647a1b8d31e544dcb88

View File

@ -1 +1 @@
zlib
zstd make

View File

@ -1 +1 @@
https://github.com/ccache/ccache/releases/download/v3.7.12/ccache-3.7.12.tar.xz
https://github.com/ccache/ccache/releases/download/v4.0/ccache-4.0.tar.xz

View File

@ -1 +1 @@
3.7.12 1
4.0 1