# Maintainer: Natanael Copa pkgname=conky pkgver=1.10.8 pkgrel=0 pkgdesc="An advanced, highly configurable system monitor for X based on torsmo" url="http://conky.sourceforge.net/" arch="all" license="custom" makedepends="alsa-lib-dev libxml2-dev curl-dev wireless-tools-dev libxft-dev glib-dev libxdamage-dev libxext-dev imlib2-dev lua5.3-dev cairo-dev tolua++ ncurses-dev linux-headers cmake gawk libxinerama-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/brndnmtthws/conky/archive/v$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$builddir" sed -i -e '32 iinclude(CheckIncludeFile)' CMakeLists.txt default_prepare } build() { cd "$builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_CURL=ON \ -DBUILD_XDBE=ON \ -DBUILD_IMLIB2=ON \ -DBUILD_RSS=ON \ -DBUILD_WEATHER_METAR=ON \ -DBUILD_WEATHER_XOAP=ON \ -DBUILD_WLAN=ON \ -DBUILD_I18N=OFF make } check() { cd "$builddir" ./src/conky --help > /dev/null } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE } sha512sums="743b1d17db4ae654c7a319fe9157e9ebc5eb4ae0462a1f7269332d379e8bdd1dbfecc3ab6f46c8b5176b7e40918301649ac3ee883a84dc4fc8d766abbac6585a conky-1.10.8.tar.gz"