summaryrefslogtreecommitdiffstats
path: root/abs/extra/nvidia-settings/PKGBUILD
blob: 2330008e6d3e308224fc1d784fba89619d1ea61f (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
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=nvidia-settings
pkgver=364.19
pkgrel=1
pkgdesc="Tool for configuring the NVIDIA graphics driver"
arch=('i686' 'x86_64')
url="https://github.com/NVIDIA/nvidia-settings"
license=('GPL2')
depends=('jansson' 'gtk3' 'libxv' 'libvdpau' 'nvidia-utils')
makedepends=('git' 'inetutils' 'gtk2')
source=("git+https://github.com/NVIDIA/nvidia-settings#tag=$pkgver")
sha1sums=('SKIP')

prepare() {
  export PREFIX=/usr
  export NV_USE_BUNDLED_LIBJANSSON=0
}

build() {
  cd ${pkgname}
  make
}

package() {
  cd ${pkgname}
  make DESTDIR="${pkgdir}" install

  install -D -m644 doc/nvidia-settings.desktop "${pkgdir}/usr/share/applications/nvidia-settings.desktop"
  install -D -m644 doc/nvidia-settings.png "${pkgdir}/usr/share/pixmaps/nvidia-settings.png"
  sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i "${pkgdir}/usr/share/applications/nvidia-settings.desktop"

  rm "$pkgdir/usr/lib/libnvidia-gtk2.so.$pkgver"
}