summaryrefslogtreecommitdiff
path: root/community/libxnvctrl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libxnvctrl/PKGBUILD')
-rw-r--r--community/libxnvctrl/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/libxnvctrl/PKGBUILD b/community/libxnvctrl/PKGBUILD
new file mode 100644
index 000000000..e5f3cf25b
--- /dev/null
+++ b/community/libxnvctrl/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 104297 2014-01-17 10:20:00Z flexiondotorg $
+# Maintainer: Martin Wimpress <code@flexion.org>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+
+pkgname=libxnvctrl
+pkgver=331.38
+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=('ad3fd407dcf8678c770d6202651eb08162fd5e5d'
+ '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
+}