void-packages/srcpkgs/conky-cli/template
2021-04-03 10:13:07 +07:00

38 lines
1.4 KiB
Bash

# Template file for 'conky-cli'
# Keep in sync with 'conky'
pkgname=conky-cli
version=1.12.1
revision=1
wrksrc="${pkgname/-cli/}-${version}"
build_style=cmake
conf_files="/etc/conky/conky.conf /etc/conky/conky_no_x11.conf"
configure_args="-DMAINTAINER_MODE=ON -DRELEASE=ON
-DDOC_PATH=share/doc/${pkgname} -DBUILD_X11=OFF -DBUILD_CURL=ON -DBUILD_XDBE=OFF
-DBUILD_RSS=ON -DBUILD_WEATHER_METAR=OFF -DBUILD_IMLIB2=OFF -DBUILD_WLAN=ON
-DBUILD_DOCS=ON"
hostmakedepends="libtool pkg-config docbook2x man-db"
makedepends="libcurl-devel libglib-devel libxml2-devel lua53-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=c95ac686a1095d29c2f44cfc3849b80ce9a0aba1e054fd6105d10af04bb2d8a8
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/doc/conky-cli/conky.conf ${DESTDIR}/etc/conky/
mv ${DESTDIR}/usr/share/doc/conky-cli/conky_no_x11.conf ${DESTDIR}/etc/conky/
rm ${DESTDIR}/usr/share/doc/conky-cli/convert.lua
vlicense COPYING
}