]> git.armaanb.net Git - asd-repo.git/commitdiff
ccache: new package at 4.3
authorArmaan Bhojwani <me@armaanb.net>
Wed, 30 Jun 2021 03:49:31 +0000 (23:49 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 30 Jun 2021 23:15:19 +0000 (19:15 -0400)
ccache/build [new file with mode: 0755]
ccache/checksums [new file with mode: 0644]
ccache/depends [new file with mode: 0644]
ccache/post-install [new file with mode: 0755]
ccache/sources [new file with mode: 0644]
ccache/version [new file with mode: 0644]

diff --git a/ccache/build b/ccache/build
new file mode 100755 (executable)
index 0000000..fdefd5d
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+export CFLAGS="$CFLAGS -static"
+export CXXFLAGS="$CXXFLAGS -static"
+
+cmake -B build \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DENABLE_TESTING=OFF \
+    -DZSTD_LIBRARY=/usr/lib/libzstd.a
+
+cmake --build   build
+cmake --install build
+
+mkdir -p "$1/usr/lib/ccache/bin"
+host=$(cc -dumpmachine)
+
+for link in \
+    cc  "$host-cc"  \
+    cpp "$host-cpp" \
+    c++ "$host-c++" \
+    clang clang++
+do
+    ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
+done
diff --git a/ccache/checksums b/ccache/checksums
new file mode 100644 (file)
index 0000000..f41bbc4
--- /dev/null
@@ -0,0 +1 @@
+504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
diff --git a/ccache/depends b/ccache/depends
new file mode 100644 (file)
index 0000000..e52bd7d
--- /dev/null
@@ -0,0 +1,2 @@
+cmake make
+zstd  make
diff --git a/ccache/post-install b/ccache/post-install
new file mode 100755 (executable)
index 0000000..aa7a58e
--- /dev/null
@@ -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/ccache/sources b/ccache/sources
new file mode 100644 (file)
index 0000000..016b70d
--- /dev/null
@@ -0,0 +1 @@
+https://github.com/ccache/ccache/releases/download/v4.3/ccache-4.3.tar.xz
diff --git a/ccache/version b/ccache/version
new file mode 100644 (file)
index 0000000..aead541
--- /dev/null
@@ -0,0 +1 @@
+4.3 1