Skip to content

Instantly share code, notes, and snippets.

@tiagoshibata
Last active December 5, 2017 02:08
Show Gist options
  • Save tiagoshibata/3cac02d5a8d767e8044cea961d03fd6a to your computer and use it in GitHub Desktop.
Save tiagoshibata/3cac02d5a8d767e8044cea961d03fd6a to your computer and use it in GitHub Desktop.
pkgname=cub
pkgver=1.7.4
pkgrel=1
pkgdesc="A flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming."
arch=('any')
url='http://nvlabs.github.com/cub/'
license=('New BSD')
makedepends=()
optdepends=('cuda')
source=("https://github.com/NVlabs/cub/archive/${pkgver}.zip"
"cub.pc")
sha256sums=('20a1a39fd97e5da7f40f5f2e7fd73fd2ea59f9dc4bb8a6c5f228aa543e727e31'
'5003a9ee6d7dfa32bbdfbd67d2a7cfcc6c1ca54630c85012ec0b18b519d80230')
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment