PKGBUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Maintainer: Freemor <freemor2freemor.ca>
  2. # Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
  3. # Contributor: Giovanni Scafora <giovanni@archlinux.org>
  4. # Contributor: James Rayner <james@archlinux.org>
  5. # Contributor: Partha Chowdhury <kira.laucas@gmail.com>
  6. # Rational: Remove nonfree libxnvcrtl depend
  7. pkgname=conky
  8. pkgver=1.11.5
  9. pkgrel=3
  10. pkgrel+=.parabola1
  11. pkgdesc='Lightweight system monitor for X'
  12. url='https://github.com/brndnmtthws/conky'
  13. license=('BSD' 'GPL')
  14. arch=('x86_64' 'i686' 'armv7h')
  15. makedepends=('cmake' 'docbook2x' 'docbook-xsl' 'man-db' 'git')
  16. depends=('glib2' 'lua' 'wireless_tools' 'libxdamage' 'libxinerama' 'libxft'
  17. 'imlib2' 'libxml2' 'libpulse')
  18. source=("https://github.com/brndnmtthws/conky/archive/v${pkgver}.tar.gz")
  19. sha256sums=('4cefdd92219a90934c28297e4ac7448a3f69d6aeec5d48c5763b23f6b214ef13')
  20. options=('!strip' 'debug')
  21. build() {
  22. cd "${srcdir}/${pkgname}-${pkgver}"
  23. cmake \
  24. -D CMAKE_BUILD_TYPE=Release \
  25. -D MAINTAINER_MODE=ON \
  26. -D BUILD_DOCS=ON \
  27. -D BUILD_WLAN=ON \
  28. -D BUILD_XDBE=ON \
  29. -D BUILD_XSHAPE=ON \
  30. -D BUILD_IMLIB2=ON \
  31. -D BUILD_CURL=ON \
  32. -D BUILD_RSS=ON \
  33. -D BUILD_WEATHER_METAR=ON \
  34. -D BUILD_PULSEAUDIO=ON \
  35. -D BUILD_JOURNAL=ON \
  36. -D CMAKE_INSTALL_PREFIX=/usr \
  37. .
  38. make
  39. }
  40. package() {
  41. cd "${srcdir}/${pkgname}-${pkgver}"
  42. make DESTDIR="${pkgdir}" install
  43. install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  44. install -Dm644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conkyrc.vim
  45. install -Dm644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conkyrc.vim
  46. }