gtk/nvidia-settings/PKGBUILD

36 lines
1.4 KiB
Bash
Raw Normal View History

# maintainer: AlmAck <gluca86@gmail.com>
2013-05-06 04:55:40 +08:00
pkgbase=nvidia-utils
pkgname=('nvidia-settings')
pkgdesc="Gtk Graphical User Interface for nVidia"
depends=('gtk2' 'pangox-compat')
2014-03-08 22:54:49 +08:00
pkgver=331.38
2014-02-19 06:44:02 +08:00
pkgrel=1
2013-05-06 04:55:40 +08:00
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
options=('!strip')
source=("ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
'nvidia-restore-settings.desktop')
2014-03-08 22:54:49 +08:00
md5sums=('f2059ae373665cb6c8fb826e1173b04d'
'9237516792da7b6df32f8c7e8a98f475')
2013-05-06 04:55:40 +08:00
build() {
cd "${srcdir}"
sh "NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run" --extract-only
}
package() {
cd "${srcdir}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
install -D -m755 nvidia-settings "${pkgdir}/usr/bin/nvidia-settings"
install -D -m644 nvidia-settings.1.gz "${pkgdir}/usr/share/man/man1/nvidia-settings.1.gz"
install -D -m644 nvidia-settings.desktop "${pkgdir}/usr/share/applications/nvidia-settings.desktop"
install -D -m644 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"
2013-05-06 04:55:40 +08:00
# Install the autostart .desktop file, so that parameters saved through nvidia-settings
# are automatically reloaded at each login
install -D -m644 "${srcdir}/nvidia-restore-settings.desktop" "${pkgdir}/etc/xdg/autostart/nvidia-restore-settings.desktop"
2013-05-06 04:55:40 +08:00
}