updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / conky-lua / PKGBUILD
blob96cf02830e041dbcf078b51083bd069ee8dbdfcc
1 # Maintainer: Renato Garcia <fgar.renato@gmail.com>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: James Rayner <james@archlinux.org>
4 # Contributor: Partha Chowdhury <kira.laucas@gmail.com>
5 # Contributor: Gaetan Bisson <bisson@archlinux.org>
7 pkgname=conky-lua
8 _pkgname=conky
9 pkgver=1.8.1
10 pkgrel=3
11 pkgdesc='An advanced, highly configurable system monitor for X based on torsmo, with lua bindings enabled.'
12 arch=('i686' 'x86_64')
13 url='http://conky.sourceforge.net/'
14 license=('custom')
15 replaces=('torsmo')
16 makedepends=('pkg-config' 'toluapp')
17 depends=('alsa-lib' 'libxml2' 'curl' 'wireless_tools' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'lua' 'cairo')
18 provides=('conky=1.8.1')
19 conflicts=('conky')
20 backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf')
21 source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
22         'current-power.patch')
23 sha1sums=('06bbe9b7eed8603fa7a971b27c5c61f38424ac6f'
24           '2eeef0cc5a0b612826b2a7f0b43b7a3b7e10bf0b')
26 build() {
27     cd "${srcdir}/${_pkgname}-${pkgver}"
29     patch -p1 < ../current-power.patch # See FS#21984
31     sed -i '
32     /#include <curl\/types.h>/ c\
33     //#include <curl/types.h>' src/eve.c
35     sed -i '
36     /#include <curl\/types.h>/ c\
37     //#include <curl/types.h>' src/ccurl_thread.c
39     ./configure \
40         --prefix=/usr \
41         --sysconfdir=/etc \
42         --enable-ibm \
43         --enable-curl \
44         --enable-rss \
45         --enable-weather-xoap \
46         --enable-imlib2 \
47         --enable-wlan \
48         --enable-lua \
49         --enable-lua-cairo \
50         --enable-lua-imlib2
52     make
55 package() {
56     cd "${srcdir}/${_pkgname}-${pkgver}"
57     make DESTDIR="${pkgdir}" install
58     install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"