# Contributer: Paramvir Likhari # Maintainer: Paramvir Likhari # This conky version has built in tolua++_5.3 lua and only supports lua 5.3 # to create NON NVIDIA package - remove following # in makedepends 'libxnvctrl' # in build section remove line containing -D BUILD_NVIDIA=ON \ # For non-cairo conky - install stock version from Arch repos # the covert.lua utility is also put in the /usr/bin folder # as an executable conky-convert.lua - so can be called anywhere. # I prefer to give the new files a .lua extension - easier to edit. # the config section uses -- as comment and text section uses # for comment # 'Lightweight system monitor for X. conky 1.11.1 has integrated lua - this build includes lua-cairo, lua-imlib2, nvidia and other bindings. Read this PKGBUILD for added comments re installing Audacious etc or disabling nvidia. Visit http://conky.sourceforge.net/docs.html for conky help and https://github.com/brndnmtthws/conky/issues for conky issues.' # There are many packages that can be added like xenirama - if you have more than # one display - add it in the depends and build section. Like wise - the docs are # NOT included here - when was the last time you had a look at the built in docs # if you need them - just add the 'docbook2x' 'docbook-xml' 'docbook-xsl' # 'perl-xml-libxml' 'perl-xml-sax-expat' in makedepends pkgname=conky-cairo pkgver=1.19.8 pkgrel=1 pkgdesc='Lightweight system monitor for X, Wayland, console, or file/HTTP output (with Cairo/Cairo-Lua support)' url='https://github.com/brndnmtthws/conky' license=('GPL3' 'BSD') arch=('i686' 'x86_64') epoch=1 replaces=('torsmo' 'conky') conflicts=('conky') provides=('conky') ## nvidia requirements - comment for non-nvidia depends=( 'alsa-lib' 'libxml2' 'curl' 'cairo' 'wireless_tools' 'libxft' 'librsvg' 'glib2' 'libxdamage' 'imlib2' 'lua' 'libxnvctrl' 'libxinerama' ) ## NON-nvidia requirements - remove comment for non-nvidia ## in the cmake line below change -D BUILD_NVIDIA=ON \ to -D BUILD_NVIDIA=OFF \ # depends=( 'alsa-lib' 'libxml2' 'curl' 'cairo' 'wireless_tools' 'libxft' 'librsvg' 'glib2' 'libxdamage' 'imlib2' 'lua' 'libxinerama' ) makedepends=( 'cmake' 'git' ) ### change _myopts=0 to use git version _myopts=1 case ${_myopts} in 0) ### _myopts=0 for git version ##################################### _pkgname=conky source=("git+${url}.git" ) pkgver() { cd "${srcdir}/${_pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } md5sums=('SKIP') ;; 1) ### _myopts=1 for release version ################################# _pkgname="conky-${pkgver}" source=(${url}/archive/v${pkgver}.tar.gz) md5sums=('SKIP') esac build() { cd "${srcdir}/${_pkgname}" ## correction to conky.cc for the git version sed -i 's|conky::run_all_callbacks();||' src/conky.cc ################################################################ cmake \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D BUILD_WLAN=ON \ -D BUILD_CURL=ON \ -D BUILD_RSS=OFF \ -D BUILD_XDBE=ON \ -D BUILD_XSHAPE=ON \ -D BUILD_IMLIB2=ON \ -D BUILD_ICONV=ON \ -D BUILD_LUA_CAIRO=ON \ -D BUILD_LUA_IMLIB2=ON \ -D BUILD_LUA_RSVG=ON \ -D BUILD_NVIDIA=ON \ -D BUILD_DOCS=OFF \ . make } package() { cd "${srcdir}/${_pkgname}" make DESTDIR="${pkgdir}" install install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" install -Dm755 extras/convert.lua "${pkgdir}"/usr/bin/conky-convert.lua }