summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/nvidia-cg-toolkit/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-29 19:36:41 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-29 19:36:41 (GMT)
commit477b19b25ebafc812f548edf9aa701539c511b34 (patch)
tree289e554b3fd3b5cd25665f1a2287882efc4707c7 /abs/extra/community/nvidia-cg-toolkit/PKGBUILD
parent0efa5c701a4d788742c13d92d756d4465a3c7936 (diff)
parent78fb16866e4942bffa2d7db2c28a4d422236de0a (diff)
downloadlinhes_pkgbuild-477b19b25ebafc812f548edf9aa701539c511b34.zip
linhes_pkgbuild-477b19b25ebafc812f548edf9aa701539c511b34.tar.gz
linhes_pkgbuild-477b19b25ebafc812f548edf9aa701539c511b34.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/extra/community/nvidia-cg-toolkit/PKGBUILD')
-rw-r--r--abs/extra/community/nvidia-cg-toolkit/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/extra/community/nvidia-cg-toolkit/PKGBUILD b/abs/extra/community/nvidia-cg-toolkit/PKGBUILD
new file mode 100644
index 0000000..c3f896e
--- /dev/null
+++ b/abs/extra/community/nvidia-cg-toolkit/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 64721 2012-02-18 02:42:09Z 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="February2012"
+pkgrel=1
+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=('af5a3bd72b213b20bf33cf104c83012d')
+[ "$CARCH" = "x86_64" ] &&
+md5sums=('d50dc4e6c68bb93ccfd1a66c139dd6eb')
+
+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: