aboutsummaryrefslogtreecommitdiff
path: root/extra/ccache
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ccache')
-rwxr-xr-xextra/ccache/build21
-rw-r--r--extra/ccache/checksums1
-rw-r--r--extra/ccache/depends1
-rwxr-xr-xextra/ccache/post-install10
-rw-r--r--extra/ccache/sources1
-rw-r--r--extra/ccache/version1
6 files changed, 35 insertions, 0 deletions
diff --git a/extra/ccache/build b/extra/ccache/build
new file mode 100755
index 00000000..1b063cc2
--- /dev/null
+++ b/extra/ccache/build
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+
+make
+
+install -Dm 755 ccache "$1/usr/bin/ccache"
+install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1"
+
+mkdir -p "$1/usr/lib/ccache/bin"
+
+triplet=$(cc -dumpmachine)
+
+for link in cc gcc g++ cpp c++ "$triplet-cc" "$triplet-gcc" \
+ "$triplet-g++" "$triplet-cpp" "$triplet-c++"; do
+ ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
+done
diff --git a/extra/ccache/checksums b/extra/ccache/checksums
new file mode 100644
index 00000000..37379cb0
--- /dev/null
+++ b/extra/ccache/checksums
@@ -0,0 +1 @@
+73e2633ac9bca387b5a39c72a8f85634670c4091dab639228c433898163c86c0 ccache-3.7.6.tar.xz
diff --git a/extra/ccache/depends b/extra/ccache/depends
new file mode 100644
index 00000000..f22003e8
--- /dev/null
+++ b/extra/ccache/depends
@@ -0,0 +1 @@
+zlib
diff --git a/extra/ccache/post-install b/extra/ccache/post-install
new file mode 100755
index 00000000..75fdb200
--- /dev/null
+++ b/extra/ccache/post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cat <<EOF
+
+NOTE: To enable 'ccache' add this to your
+ '.shellrc' or '.profile'.
+
+-> export PATH=/usr/lib/ccache/bin:\$PATH
+
+EOF
diff --git a/extra/ccache/sources b/extra/ccache/sources
new file mode 100644
index 00000000..4bb82721
--- /dev/null
+++ b/extra/ccache/sources
@@ -0,0 +1 @@
+https://github.com/ccache/ccache/releases/download/v3.7.6/ccache-3.7.6.tar.xz
diff --git a/extra/ccache/version b/extra/ccache/version
new file mode 100644
index 00000000..d8833805
--- /dev/null
+++ b/extra/ccache/version
@@ -0,0 +1 @@
+3.7.6 1