mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-26 15:56:19 +00:00
22 lines
475 B
Bash
Executable File
22 lines
475 B
Bash
Executable File
#!/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"
|
|
|
|
host=$(cc -dumpmachine)
|
|
|
|
for link in cc gcc g++ cpp c++ \
|
|
"$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do
|
|
ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
|
|
done
|