SHARE
TWEET

PKGBUILD-conky19-lua-nv

a guest Sep 19th, 2015 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Jon Wilson <bugs@pandorica.net>
  2. # Contributor: Spyros Stathopoulos <foucault.online[at]gmail[dot]com>
  3. # Contributor: Andrwe Lord Weber <lord-weber-andrwe [at] andrwe [dot] org>
  4. # Contributor: Giovanni Scafora <giovanni@archlinux.org>
  5. # Contributor: James Rayner <james@archlinux.org>
  6. # Contributor: Partha Chowdhury <kira.laucas@gmail.com>
  7.  
  8. pkgname=conky19-lua-nv
  9. _pkgname=conky
  10. pkgver=1.9.0
  11. pkgrel=8
  12. pkgdesc="An advanced system monitor for X based on torsmo with lua and nvidia enabled"
  13. arch=('i686' 'x86_64')
  14. url="http://conky.sourceforge.net/"
  15. license=('custom')
  16. replaces=('conky19')
  17. conflicts=('conky19')
  18. provides=('conky19')
  19. depends=('alsa-lib' 'libxml2' 'curl' 'cairo' 'wireless_tools' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'lua51')
  20. makedepends=('pkgconfig' 'tolua++' 'libxnvctrl' 'docbook2x' 'docbook-xml' 'docbook-xsl')
  21. optdepends=('nvidia: for GT4xx and newer GPUs',
  22.   'nvidia-340xx: for G8x, G9x, GT2xx GPUS',
  23.   'nvidia-304xx: for GeForce 6/7 GPUs')
  24. backup=(etc/conky/conky19.conf etc/conky/conky19_no_x11.conf)
  25. source=(https://github.com/brndnmtthws/${_pkgname}/archive/${pkgver}.tar.gz)
  26. md5sums=('b13f2c7d52e18d94bfbfcd5157406db7')
  27. install="conky-lua-nv.install"
  28.  
  29. build() {
  30.   cd ${srcdir}/${_pkgname}-${pkgver}
  31.  
  32.   sed -i '/#include <curl\/types.h>/d' ${srcdir}/${_pkgname}-${pkgver}/src/ccurl_thread.c
  33.   ./autogen.sh
  34.   LUA51_LIBS='-llua5.1 -lm' LUA51_CFLAGS='-I/usr/include/lua5.1' \
  35.   LUA_LIBS='-llua5.1 -lm' LUA_CFLAGS="-I/usr/include/lua5.1" \
  36.   CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure --prefix=/usr \
  37.               --program-suffix=19
  38.               --sysconfdir=/etc \
  39.               --enable-wlan \
  40.               --enable-rss \
  41.               --enable-ibm \
  42.               --enable-imlib2 \
  43.               --enable-lua \
  44.               --enable-lua-cairo \
  45.               --enable-lua-imlib2 \
  46.               --enable-nvidia
  47.   make
  48. }
  49.  
  50. package() {
  51.   cd ${srcdir}/${_pkgname}-${pkgver}
  52.   make DESTDIR=${pkgdir} install
  53.   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${_pkgname}19/LICENSE
  54.   install -D -m644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conky19rc.vim
  55.   install -D -m644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conky19rc.vim
  56. }
  57.  
  58. # vim:ts=2:et:sw=2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top