diff options
Diffstat (limited to 'community-testing/nvclock')
-rw-r--r-- | community-testing/nvclock/PKGBUILD | 45 | ||||
-rw-r--r-- | community-testing/nvclock/nvclock-0.8b4-buildfix.patch | 16 | ||||
-rw-r--r-- | community-testing/nvclock/nvclock-0.8b4-linkfix.patch | 18 | ||||
-rw-r--r-- | community-testing/nvclock/nvclock.desktop-use-gksu.patch | 11 | ||||
-rw-r--r-- | community-testing/nvclock/nvclock.install | 11 |
5 files changed, 101 insertions, 0 deletions
diff --git a/community-testing/nvclock/PKGBUILD b/community-testing/nvclock/PKGBUILD new file mode 100644 index 000000000..28cde7638 --- /dev/null +++ b/community-testing/nvclock/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 63218 2012-01-30 19:03:47Z 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/community-testing/nvclock/nvclock-0.8b4-buildfix.patch b/community-testing/nvclock/nvclock-0.8b4-buildfix.patch new file mode 100644 index 000000000..cdc9f5c88 --- /dev/null +++ b/community-testing/nvclock/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/community-testing/nvclock/nvclock-0.8b4-linkfix.patch b/community-testing/nvclock/nvclock-0.8b4-linkfix.patch new file mode 100644 index 000000000..0029d1c74 --- /dev/null +++ b/community-testing/nvclock/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/community-testing/nvclock/nvclock.desktop-use-gksu.patch b/community-testing/nvclock/nvclock.desktop-use-gksu.patch new file mode 100644 index 000000000..a372f5de8 --- /dev/null +++ b/community-testing/nvclock/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/community-testing/nvclock/nvclock.install b/community-testing/nvclock/nvclock.install new file mode 100644 index 000000000..d59dca6e8 --- /dev/null +++ b/community-testing/nvclock/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 +} |