summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordobo902015-06-08 19:31:25 +0200
committerdobo902015-06-08 19:31:25 +0200
commit83213aa37a61bcf2ad5d6afe7e00ed07e2d03f4e (patch)
tree19bb9f89114c4bd0dcfd717278f40b47396b1a16
downloadaur-nvclock.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD45
-rw-r--r--nvclock-0.8b4-buildfix.patch16
-rw-r--r--nvclock-0.8b4-linkfix.patch18
-rw-r--r--nvclock.desktop-use-gksu.patch11
-rw-r--r--nvclock.install11
6 files changed, 124 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c41b7479ce1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = nvclock
+ pkgdesc = A small utility which allows users to overclock NVIDIA based video cards.
+ pkgver = 0.8b4
+ pkgrel = 3
+ url = http://www.linuxhardware.org/nvclock/
+ install = nvclock.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = gtk2
+ optdepends = gksu: to start nvclock via the desktop menu entry
+ options = !makeflags
+ source = http://www.linuxhardware.org/nvclock/nvclock0.8b4.tar.gz
+ source = nvclock-0.8b4-buildfix.patch
+ source = nvclock-0.8b4-linkfix.patch
+ source = nvclock.desktop-use-gksu.patch
+ md5sums = 23f1b3ebf40f35d76d5fdac50f66ab11
+ md5sums = 1da24b50dd6a8c4704fa550a3e1a8b53
+ md5sums = b812646787ea44e693fd2288612f25ad
+ md5sums = 98fc1995721d0b0e8ff6d448869eee6d
+
+pkgname = nvclock
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ac863cc8190
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 63680 2012-02-05 12:06:13Z ibiru $
+# 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=3
+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-0.8b4-linkfix.patch'
+ 'nvclock.desktop-use-gksu.patch')
+md5sums=('23f1b3ebf40f35d76d5fdac50f66ab11'
+ '1da24b50dd6a8c4704fa550a3e1a8b53'
+ 'b812646787ea44e693fd2288612f25ad'
+ '98fc1995721d0b0e8ff6d448869eee6d')
+
+build(){
+ cd "${srcdir}/${pkgname}${pkgver}"
+
+ # build and link fixes from Fedora
+ patch -Np1 -i "${srcdir}/nvclock-0.8b4-buildfix.patch"
+ patch -Np1 -i "${srcdir}/nvclock-0.8b4-linkfix.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
+}
diff --git a/nvclock-0.8b4-buildfix.patch b/nvclock-0.8b4-buildfix.patch
new file mode 100644
index 00000000000..cdc9f5c8893
--- /dev/null
+++ b/nvclock-0.8b4-buildfix.patch
@@ -0,0 +1,16 @@
+diff -upNr nvclock0.8b4.orign/src/Makefile.in nvclock0.8b4/src/Makefile.in
+--- nvclock0.8b4.orign/src/Makefile.in 2009-01-03 18:02:54.000000000 +0100
++++ nvclock0.8b4/src/Makefile.in 2009-01-07 11:37:39.000000000 +0100
+@@ -50,8 +50,8 @@ distclean: distclean-recursive clean-app
+ install: install-recursive install-app
+ install-app:
+ mkdir -p $(bindir)
+- $(INSTALL) -c nvclock $(DESTDIR)$(bindir)/nvclock
+- $(INSTALL) -c smartdimmer $(DESTDIR)$(bindir)/smartdimmer
++ $(INSTALL) -c nvclock $(bindir)/nvclock
++ $(INSTALL) -c smartdimmer $(bindir)/smartdimmer
+
+
+ uninstall: uninstall-recursive uninstall-app
+
+
diff --git a/nvclock-0.8b4-linkfix.patch b/nvclock-0.8b4-linkfix.patch
new file mode 100644
index 00000000000..0029d1c74e1
--- /dev/null
+++ b/nvclock-0.8b4-linkfix.patch
@@ -0,0 +1,18 @@
+diff -upNr nvclock0.8b4.orign/src/gtk/Makefile.in nvclock0.8b4/src/gtk/Makefile.in
+--- nvclock0.8b4.orign/src/gtk/Makefile.in 2008-05-11 12:25:46.000000000 +0200
++++ nvclock0.8b4/src/gtk/Makefile.in 2010-02-13 19:56:24.204078277 +0100
+@@ -20,12 +20,12 @@ endif
+ ifeq ($(HAVE_NVCONTROL), yes)
+ DEPS=$(libbackend) $(libnvcontrol)
+ INCLUDES=@X11_CFLAGS@ -I./backend -I./nvcontrol -I.. -I../..
+- LIBS=@GTK_LIBS@ -L../backend -lbackend -L../nvcontrol -lnvcontrol
++ LIBS=@GTK_LIBS@ -L../backend -lbackend -L../nvcontrol -lnvcontrol -lX11 -lXext -ldl
+ OBJECTS=banner.o gl.o hw.o main.o settings.o
+ else
+ DEPS=$(libbackend)
+ INCLUDES=-I./backend -I./nvcontrol -I.. -I../..
+- LIBS=@GTK_LIBS@ -L../backend -lbackend
++ LIBS=@GTK_LIBS@ -L../backend -lbackend -lX11 -lXext -ldl
+ OBJECTS=banner.o hw.o main.o settings.o
+ endif
+
diff --git a/nvclock.desktop-use-gksu.patch b/nvclock.desktop-use-gksu.patch
new file mode 100644
index 00000000000..a372f5de8b4
--- /dev/null
+++ b/nvclock.desktop-use-gksu.patch
@@ -0,0 +1,11 @@
+--- nvclock.desktop.orig 2011-01-16 15:15:55.764977836 +0100
++++ nvclock.desktop 2011-01-16 15:16:07.827408839 +0100
+@@ -2,7 +2,7 @@
+ Encoding=UTF-8
+ Name=NVCLOCK
+ Comment=Overclock and Monitor NVIDIA cards
+-Exec=nvclock_gtk
++Exec=gksu nvclock_gtk
+ Icon=nvclock.png
+ Terminal=false
+ Type=Application
diff --git a/nvclock.install b/nvclock.install
new file mode 100644
index 00000000000..d59dca6e808
--- /dev/null
+++ b/nvclock.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}