diff options
Diffstat (limited to 'community/libxnvctrl')
-rw-r--r-- | community/libxnvctrl/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/libxnvctrl/PKGBUILD b/community/libxnvctrl/PKGBUILD new file mode 100644 index 000000000..0f1a0a2b5 --- /dev/null +++ b/community/libxnvctrl/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 21605 2010-07-16 19:59:46Z tdziedzic $ +# Maintainer: Roman Kyrylych <roman@archlinux.org> +# Contributor: Roman Kyrylych <roman@archlinux.org> + +pkgname=libxnvctrl +pkgver=1.16 +pkgrel=2 +pkgdesc='NVCtrl library' +arch=('i686' 'x86_64') +url='http://www.nvidia.com/' +license=('GPL') +makedepends=('libx11' 'xextproto' 'libxext') +source=("ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-173.14.05.tar.gz") +md5sums=('de4794122256d1d2a771c49ce434087a') + +build() { + cd nvidia-settings-1.0/src/libXNVCtrl + + [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" + + make clean + + make +} + +package() { + cd nvidia-settings-1.0/src/libXNVCtrl + + install -Dm644 libXNVCtrl.a ${pkgdir}/usr/lib/libXNVCtrl.a + install -Dm644 NVCtrl.h ${pkgdir}/usr/include/NVCtrl/NVCtrl.h + install -Dm644 NVCtrlLib.h ${pkgdir}/usr/include/NVCtrl/NVCtrlLib.h + install -Dm644 nv_control.h ${pkgdir}/usr/include/NVCtrl/nv_control.h +} |