void-packages/srcpkgs/conky-cli/template
2019-10-03 19:34:42 +02:00

35 lines
1.3 KiB
Bash

# Template file for 'conky-cli'
pkgname=conky-cli
version=1.11.5
revision=1
wrksrc="${pkgname/-cli/}-${version}"
build_style=cmake
conf_files="/etc/conky/conky.conf /etc/conky/conky_no_x11.conf"
configure_args="-DCMAKE_BUILD_TYPE=Release -DMAINTAINER_MODE=ON
-DDOC_PATH=share/${pkgname} -DBUILD_X11=OFF -DBUILD_CURL=ON -DBUILD_XDBE=OFF
-DBUILD_RSS=ON -DBUILD_WEATHER_METAR=OFF -DBUILD_IMLIB2=OFF -DBUILD_WLAN=ON"
hostmakedepends="libtool pkg-config docbook2x man-db git"
makedepends="libcurl-devel libglib-devel libxml2-devel lua-devel
wireless_tools-devel"
short_desc="Conky command line without X11"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, GPL-3.0-or-later"
homepage="https://github.com/brndnmtthws/conky"
distfiles="https://github.com/brndnmtthws/conky/archive/v${version}.tar.gz"
checksum=4cefdd92219a90934c28297e4ac7448a3f69d6aeec5d48c5763b23f6b214ef13
provides="conky-${version}_${revision}"
conflicts="conky>=0"
post_extract() {
sed -i -e '1iinclude(CheckIncludeFile)' \
-e 's/NCURSES ncurses/NCURSES ncursesw/' \
cmake/ConkyPlatformChecks.cmake
}
post_install() {
vmkdir etc/conky
mv ${DESTDIR}/usr/share/conky-cli/conky.conf ${DESTDIR}/etc/conky/
mv ${DESTDIR}/usr/share/conky-cli/conky_no_x11.conf ${DESTDIR}/etc/conky/
vlicense COPYING
}