summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3ead6fb8eb2b51c2fb53c8f968af2897be5d1f0 (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
# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Benjamin Chretien <chretien at lirmm dot fr>
pkgname=cub
pkgver=1.8.0
pkgrel=2
pkgdesc="A flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming."
arch=('any')
url='http://nvlabs.github.com/cub/'
license=('custom')
optdepends=('cuda')
source=("https://github.com/NVlabs/cub/archive/${pkgver}.zip"
        "cub.pc")
sha256sums=('6bfa06ab52a650ae7ee6963143a0bbc667d6504822cbd9670369b598f18c58c3'
            '93707c5fd3a2f93e825fc9cde8133fc525c7e5d6f22bbb006f494de74930bf87')

package() {
  cd "${srcdir}/cub-${pkgver}"

  # Install headers
  install -d "${pkgdir}/usr/include/cub"
  cp -r "cub" "${pkgdir}/usr/include"

  # Install pkg-config file
  install -Dm644 "${srcdir}/cub.pc" "${pkgdir}"/usr/lib/pkgconfig/cub.pc

  install -Dm644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}