PKGBUILD 813 Bytes
Newer Older
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
# Maintainer: almack <almack@chakraos.org>

pkgname=lib32-libcl
pkgver=1.1
_pkgver=337.25
pkgrel=1
pkgdesc="OpenCL library and ICD loader from NVIDIA (32-bit)"
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
options=('!strip')
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${_pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${_pkgver}/${_pkg}.run")
md5sums=('2a217632ced8952e21000a51065f85b8')

build() {
    cd $srcdir
    sh ${_pkg}.run --extract-only
}

package() {
    cd $srcdir/${_pkg}
    install -D -m755 libOpenCL.so.1.0.0 $pkgdir/usr/lib32/libOpenCL.so.1.0.0
    ln -s /usr/lib32/libOpenCL.so.1.0.0 $pkgdir/usr/lib32/libOpenCL.so.1
    ln -s /usr/lib32/libOpenCL.so.1 $pkgdir/usr/lib32/libOpenCL.so
    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}