blob: d3a09a67018f8ba50c6fc38d26eb167694a25eb0 (
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
36
37
38
39
40
41
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' 'mips64el')
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
}
|