summaryrefslogtreecommitdiff
path: root/community/nvclock/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/nvclock/PKGBUILD')
-rw-r--r--community/nvclock/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/nvclock/PKGBUILD b/community/nvclock/PKGBUILD
new file mode 100644
index 000000000..4eda3735f
--- /dev/null
+++ b/community/nvclock/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 37680 2011-01-16 14:37:03Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Markus Meissner <markus@meissna.de>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=nvclock
+pkgver=0.8b4
+pkgrel=2
+pkgdesc='A small utility which allows users to overclock NVIDIA based video cards.'
+arch=('i686' 'x86_64')
+url='http://www.linuxhardware.org/nvclock/'
+license=('GPL')
+depends=('gtk2')
+optdepends=('gksu: to start nvclock via the desktop menu entry')
+install='nvclock.install'
+options=('!makeflags')
+source=("http://www.linuxhardware.org/${pkgname}/${pkgname}${pkgver}.tar.gz"
+ 'nvclock-0.8b4-buildfix.patch'
+ 'nvclock.desktop-use-gksu.patch')
+md5sums=('23f1b3ebf40f35d76d5fdac50f66ab11'
+ '1da24b50dd6a8c4704fa550a3e1a8b53'
+ '98fc1995721d0b0e8ff6d448869eee6d')
+
+build(){
+ cd "${srcdir}/${pkgname}${pkgver}"
+
+ # build fix from Fedora
+ patch -Np1 -i "${srcdir}/nvclock-0.8b4-buildfix.patch"
+
+ # Make ".desktop" file use gksu(1).
+ patch -Np0 -i "${srcdir}/nvclock.desktop-use-gksu.patch"
+
+ sed -i 's:${prefix}/man:${prefix}\/share\/man:' "${srcdir}/${pkgname}${pkgver}/Makefile.in"
+
+ ./configure --prefix=/usr --bindir=/usr/bin
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}