summaryrefslogtreecommitdiff
path: root/community/libxnvctrl/PKGBUILD
blob: 1986d893e1bfef1d736aad36e146af905acc8a28 (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
# $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' 'mips64el')
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
}