updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / conky-nvidia-git / PKGBUILD
blob460541b2635445a468fd10b7aba2240f986b77a7
1 # Maintainer: Chris Sakalis <chrissakalis@gmail.com>
3 pkgname=conky-nvidia-git
4 _pkgname=conky
5 pkgver=20120126
6 pkgrel=1
7 pkgdesc='An advanced, highly configurable system monitor for X based on torsmo. Build with Nvidia support. This is meant as a temporary package until 1.8.2 becomes the stable version.'
8 arch=('i686' 'x86_64')
9 url='http://conky.sourceforge.net/'
10 license=('BSD' 'GPL')
11 replaces=('torsmo')
12 conflicts=('conky')
13 provides=('conky')
14 makedepends=('git' 'cmake')
15 depends=('alsa-lib' 'libxml2' 'curl' 'wireless_tools' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'nvidia' 'libxnvctrl' 'lua')
17 build() {
18         cd "${srcdir}"
19   msg "Connecting to GIT server...."
21         if [ -d conky ] ; then
22     cd conky && git pull origin
23     msg "The local files are updated."
24   else
25     git clone --depth 1 "git://git.omp.am/conky.git" || return 1
26   fi
28         msg "GIT checkout done or server timeout"
30         cd "$srcdir/conky"
31         mkdir -p build
32         cd build
33         cmake -DBUILD_CURL=ON \
34                                 -DBUILD_IMLIB2=ON \
35                                 -DBUILD_NVIDIA=ON \
36                                 -DBUILD_RSS=ON \
37                                 -DBUILD_IBM=ON \
38                                 -DBUILD_LUA_CAIRO=OFF \
39                                 -DBUILD_LUA_IMLIB2=OFF \
40                                 -DBUILD_WEATHER_XOAP=ON \
41                                 -DBUILD_WEATHER_METAR=ON \
42                                 -DBUILD_WLAN=ON \
43                                 -DBUILD_MYSQL=OFF \
44                                 -DCMAKE_INSTALL_PREFIX='/usr' \
45                                 ../ || return 1
47         make -j || return 1
50 package() {
51         cd "$srcdir/conky/build"
52         make DESTDIR="$pkgdir" install || return 1
53         cd "${srcdir}/conky"
54         install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"