blob: 8cb63ad565268f0b482bce489a7c30a6046ba3a1 (
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
38
|
# $Id: PKGBUILD 104245 2014-01-16 17:59:46Z flexiondotorg $
# Maintainer: Martin Wimpress <code@flexion.org>
# Contributor: Alessio Sergi <asergi at archlinux dot us>
pkgname=libxnvctrl
pkgver=331.20
pkgrel=2
pkgdesc="NVIDIA X Ctrl library"
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
license=('GPL2')
depends=('libxext')
source=("http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-${pkgver}.tar.bz2"
"10_libxnvctrl_so_0.diff")
sha1sums=('a42cd2e821bce5061532d38d9f84a45d2986ba58'
'84146494a08d4b691e2cff84d1551210eee584dd')
prepare() {
cd "nvidia-settings-$pkgver"
patch -Np1 -i "${srcdir}/10_libxnvctrl_so_0.diff"
}
build() {
cd "nvidia-settings-$pkgver/src/libXNVCtrl"
make clean
make
}
package() {
cd "nvidia-settings-$pkgver/src/libXNVCtrl"
# install libXNVCtrl and headers
install -d -m 755 "$pkgdir"/usr/{include/NVCtrl,lib}
install -m 644 nv_control.h NVCtrl{,Lib}.h "$pkgdir"/usr/include/NVCtrl/
install -m 644 libXNVCtrl.so.0.0.0 "$pkgdir"/usr/lib/
cd "$pkgdir"/usr/lib/
ln -s libXNVCtrl.so.0.0.0 libXNVCtrl.so.0
ln -s libXNVCtrl.so.0 libXNVCtrl.so
}
|