desktop/nvidia-cg-toolkit/PKGBUILD
2011-01-22 22:34:38 +00:00

43 lines
1.6 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=nvidia-cg-toolkit
pkgver=3.0
_date="July2010"
pkgrel=2
pkgdesc="NVIDIA Cg libraries"
arch=('i686' 'x86_64')
url="http://developer.nvidia.com/object/cg_toolkit.html"
license=('custom')
depends=('glibc' 'mesa')
conflicts=('cgcompiler') # replaces cgcompiler
source=(http://developer.download.nvidia.com/cg/Cg_${pkgver}/Cg-${pkgver}_${_date}_${CARCH/i686/x86}.tgz)
[ "$CARCH" = "i686" ] &&
md5sums=('f1053d00855974fb444a8fcb04faf73a')
[ "$CARCH" = "x86_64" ] &&
md5sums=('9eb20a61b66d3a8b1112bc057012e9cf')
build() {
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 -dm755 ${pkgdir}/usr/share/man/man3
install -m644 ${srcdir}/usr/share/man/man3/* ${pkgdir}/usr/share/man/man3
install -dm755 ${pkgdir}/usr/share/man/manCg
install -m644 ${srcdir}/usr/share/man/manCg/* ${pkgdir}/usr/share/man/manCg/
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 '{}' ';'
}