# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Roman Kyrylych # Contributor: Roman Kyrylych pkgname=libxnvctrl pkgver=1.16 pkgrel=1.1 pkgdesc="NVCtrl library" arch=('i686' 'x86_64') url="http://www.nvidia.com/" license=('GPL') makedepends=('libx11' 'xextproto') source=(ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-173.14.05.tar.gz) md5sums=('de4794122256d1d2a771c49ce434087a') build() { cd $startdir/src/nvidia-settings-1.0/src/libXNVCtrl [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" make clean make || return 1 install -Dm644 libXNVCtrl.a $startdir/pkg/usr/lib/libXNVCtrl.a install -Dm644 NVCtrl.h $startdir/pkg/usr/include/NVCtrl/NVCtrl.h install -Dm644 NVCtrlLib.h $startdir/pkg/usr/include/NVCtrl/NVCtrlLib.h install -Dm644 nv_control.h $startdir/pkg/usr/include/NVCtrl/nv_control.h }