# Maintainer: Jingbei Li # Contributor: Benjamin Chretien 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" }