diff options
author | Benjamin Chrétien | 2015-02-09 17:21:11 +0100 |
---|---|---|
committer | Benjamin Chrétien | 2015-02-09 17:21:11 +0100 |
commit | a4eb413a238c1ee4ecacb6ee75e1013f7c0b8295 (patch) | |
tree | 65130694ec5d1f2ef927711dba95190d5c8e21f0 /PKGBUILD | |
download | aur-a4eb413a238c1ee4ecacb6ee75e1013f7c0b8295.tar.gz |
Add cuda-z.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..310c2865adda --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: <maxmusterm@gmail.com> + +pkgname=cuda-z +_relver=231 +pkgver=0.9 +pkgrel=1 +pkgdesc="CUDA Information Utility." +url="http://cuda-z.sourceforge.net/" +license="GPL2" +arch=("x86_64") +depends=("cuda-toolkit" "qt4") +source=("http://downloads.sourceforge.net/cuda-z/cuda-z-${pkgver}.zip") +sha1sums=('bab558d46765b2e1d763df670c979a3b5033eb6a') + +build(){ + cd ${srcdir}/${pkgname}-${pkgver}/ + + # Support for sm_10 dropped in CUDA 6.5 + sed -i 's/+= sm_10/+=/g' cuda-z.pro + + sed -i 's/\/usr\/local\/cuda/\/opt\/cuda/g' cuda-z.pro + sed -i 's/\/usr\/local\/cuda/\/opt\/cuda/g' cuda.pri + sed -i 's/\/usr\/local\/cuda/\/opt\/cuda/g' ./bld/bin/pkg-linux.sh + sed -i 's/\/opt\/cuda-toolkit\/lib/\/opt\/cuda\/lib\ + unix:LIBPATH += \/opt\/cuda-toolkit\/lib64/' cuda-z.pro + + qmake + + # Avoid bug with revision number + sed -i "s|'svnversion -c -n '.\$projectroot|'echo ${_relver}'|g" ./bld/bin/make_build_svn.pl + + PATH=$PATH:/opt/cuda/bin make pkg +} + +package(){ + cd ${srcdir} + mkdir -p ${pkgdir}/usr/bin/ + install -m755 ${srcdir}/${pkgname}-${pkgver}/bin/cuda-z ${pkgdir}/usr/bin/ +} |