summaryrefslogtreecommitdiff
path: root/community/nvidia-cg-toolkit/PKGBUILD
blob: ed07e852e38b1108315be1f12e3a363a5152ba2b (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
31
32
33
34
35
36
37
# $Id: PKGBUILD 74692 2012-08-02 07:39:38Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Adam Griffiths 
# Contributor: Nick B <Shirakawasuna at gmail _dot_ com>
pkgname=nvidia-cg-toolkit 
pkgver=3.1
_date="April2012"
pkgrel=2
pkgdesc="NVIDIA Cg libraries" 
arch=('i686' 'x86_64')
url="http://developer.nvidia.com/object/cg_toolkit.html" 
license=('custom')
depends=('glibc' 'mesa') 
source=(http://developer.download.nvidia.com/cg/Cg_${pkgver}/Cg-${pkgver}_${_date}_${CARCH/i686/x86}.tgz)
[ "$CARCH" = "i686" ] &&
  md5sums=('9a9fc5108154808f3b10eafa54df1c74')
[ "$CARCH" = "x86_64" ] && 
md5sums=('88ba727cdbe0261fac465c4d84f44762')

build() {
  return 0
}

package() { 
  install -Dm755 ${srcdir}/usr/bin/cgc ${pkgdir}/usr/bin/cgc
  install -dm755 ${pkgdir}/usr/include/Cg
  install -m644 ${srcdir}/usr/include/Cg/* ${pkgdir}/usr/include/Cg
  install -dm755 ${pkgdir}/usr/lib
  [ "$CARCH" = "i686" ] && install -m644 ${srcdir}/usr/lib/* ${pkgdir}/usr/lib
  [ "$CARCH" = "x86_64" ] && install -m644 ${srcdir}/usr/lib64/* ${pkgdir}/usr/lib
  install -Dm644 ${srcdir}/usr//local/Cg/docs/license.txt ${pkgdir}/usr/share/licenses/nvidia-cg-toolkit/license.txt
  cp -r ${srcdir}/usr/local/Cg ${pkgdir}/usr/share/
  find $pkgdir/usr/share/ -type d -exec chmod -R 755 '{}' ';'
  find $pkgdir/usr/share/ -type f -exec chmod -R 644 '{}' ';'
}

# vim: sw=2:ts=2 et: