summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 101c296b421e81c182987524b17a38acf7d6e35b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: pingplug < aur at pingplug dot me >

pkgname=ccache-ext
pkgver=1
pkgrel=1
pkgdesc='pacman hook for adding more compiler links to ccache'
arch=('any')
license=('custom')
depends=('ccache')
source=('nvcc-ccache.sh'
        'update-ccache-links.sh'
        'update-ccache-links.hook')
sha256sums=('c6db8aaddb625d28050e67122d3b1bf50d1e1e8d6a04cdca3dc195521b53f3c4'
            '8df3de20c1e58615354ae6fc35b3f27692060bd33f2f80229346a6acb19687bd'
            '0fc326f0225ba865394090309d27d41339113248462ee41fea2e3646d7e1eb59')

package() {
  install -d "${pkgdir}/usr/lib/ccache/bin"
  # CUDA
  if pacman -T "cuda" ; then
    # /usr/lib/ccache/bin/nvcc cauese CMake failed to find CUDA
    install -Dm755 nvcc-ccache.sh "${pkgdir}/usr/lib/ccache/bin/nvcc-ccache"
  fi
  install -d "${pkgdir}/usr/bin"
  install -Dm755 update-ccache-links.sh "${pkgdir}/usr/bin/update-ccache-links"
  install -d "${pkgdir}/usr/share/libalpm/hooks"
  install -Dm644 update-ccache-links.hook "${pkgdir}/usr/share/libalpm/hooks/"
}

# vim: ts=2 sw=2 et: