From a019ae38d56978bfaacf86d0916ad0e722638382 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 20 Jul 2016 01:18:17 +0200 Subject: [PATCH] Add packages with ccache symlinks for clang and mingw-w64-gcc --- ccache/clang/PKGBUILD | 20 ++++++++++++++++++++ ccache/mingw-w64/PKGBUILD | 26 ++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ccache/clang/PKGBUILD create mode 100644 ccache/mingw-w64/PKGBUILD diff --git a/ccache/clang/PKGBUILD b/ccache/clang/PKGBUILD new file mode 100644 index 00000000..8638678b --- /dev/null +++ b/ccache/clang/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +pkgname=clang-ccache +pkgver=1 +pkgrel=1 +pkgdesc='A compiler cache (symlinks for clang)' +arch=('any') +url="http://ccache.samba.org/" +license=('GPL3') +depends=('ccache') + +package() { + mkdir -p "${pkgdir}/usr/lib/ccache/bin" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/clang" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/clang++" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/clang-3.8" +} diff --git a/ccache/mingw-w64/PKGBUILD b/ccache/mingw-w64/PKGBUILD new file mode 100644 index 00000000..2cfa4506 --- /dev/null +++ b/ccache/mingw-w64/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +pkgname=mingw-w64-ccache +pkgver=1 +pkgrel=1 +pkgdesc='A compiler cache (symlinks for mingw-w64-gcc)' +arch=('any') +url="http://ccache.samba.org/" +license=('GPL3') +depends=('ccache') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +package() { + mkdir -p "${pkgdir}/usr/lib/ccache/bin" + for _arch in $_architectures; do + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${_arch}-cc" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${_arch}-gcc" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${_arch}-g++" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${_arch}-cpp" + ln -sf /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${_arch}-c++" + done +}