# Maintainer: Natanael Copa pkgname=conky pkgver=1.10.6 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.2-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="ddd0b087e89654f8dace7d9682935a802b3bb22b7e65acd25dcc0f06e90b46bee695502d78b6e40a409f8eaffcd65a78d5f861ee6dbcbff6e48f88c2f20319c9 conky-1.10.6.tar.gz"