void-packages/srcpkgs/conky/template

45 lines
1.9 KiB
Bash
Raw Normal View History

2013-08-16 10:54:03 +02:00
# Template file for 'conky'
pkgname=conky
2016-07-23 08:29:13 +02:00
version=1.10.4
revision=2
2015-08-26 05:39:20 +02:00
build_style=cmake
configure_args="
-DCMAKE_BUILD_TYPE=Release -DMAINTAINER_MODE=ON -DDOC_PATH=share/${pkgname}
-DBUILD_X11=ON -DBUILD_CURL=ON -DBUILD_XDBE=ON -DBUILD_RSS=ON -DBUILD_WEATHER_METAR=ON
2016-02-19 11:19:57 +01:00
-DBUILD_WEATHER_XOAP=ON -DBUILD_IMLIB2=ON -DBUILD_WLAN=ON -DBUILD_LUA_CAIRO=ON
-DBUILD_LUA_IMLIB2=ON -DBUILD_LUA_RSVG=ON -DBUILD_XSHAPE=ON"
2016-07-17 16:10:31 +02:00
hostmakedepends="libtool pkg-config docbook2x man-db git toluapp"
makedepends="lua51-devel toluapp-devel librsvg-devel alsa-lib-devel
2016-05-03 21:21:18 +02:00
libxml2-devel libXft-devel libXdamage-devel libXinerama-devel imlib2-devel
wireless_tools-devel libcurl-devel ncurses-devel"
conf_files="/etc/conky/conky.conf /etc/conky/conky_no_x11.conf"
2013-08-16 10:54:03 +02:00
short_desc="Lightweight system monitor for X"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-08-26 05:39:20 +02:00
license="BSD, GPL-3"
2013-08-16 10:54:03 +02:00
homepage="http://conky.sourceforge.net/"
2015-08-26 05:39:20 +02:00
distfiles="https://github.com/brndnmtthws/${pkgname}/archive/v${version}.tar.gz"
2016-07-23 08:29:13 +02:00
checksum=ed61ffb3be9fd24965d40401c7d54553e732038f3da2e03454915779384f59b4
2015-11-20 17:45:54 +01:00
post_extract() {
2016-02-19 11:19:57 +01:00
sed -i \
-e '1iinclude(CheckIncludeFile)' \
-e 's/(LUA REQUIRED lua5.2 lua-5.2 lua>=5.1 lua5.1 lua-5.1)/(LUA REQUIRED lua5.1 lua-5.1)/g' \
-e 's/(APP_TOLUA NAMES tolua++ tolua++5.1 tolua++-5.1)/(APP_TOLUA NAMES toluapp)/g' \
-e 's/(FATAL_ERROR "Unable to find program '\''tolua++'\''")/(FATAL_ERROR "Unable to find program '\''toluapp'\''")/g' \
-e 's/(TOLUA_LIBS NAMES tolua++ tolua++5.1 tolua++-5.1)/(TOLUA_LIBS NAMES toluapp)/g' \
-e 's/(FATAL_ERROR "Unable to find tolua++ library")/(FATAL_ERROR "Unable to find toluapp library")/g' \
2016-07-17 16:10:31 +02:00
-e 's/NCURSES ncurses/NCURSES ncursesw/g' \
2016-02-19 11:19:57 +01:00
cmake/ConkyPlatformChecks.cmake
2015-11-20 17:45:54 +01:00
}
2015-08-26 05:39:20 +02:00
do_install() {
make -C build DESTDIR=${DESTDIR} install
vmkdir etc/conky
mv ${DESTDIR}/usr/share/conky/conky.conf ${DESTDIR}/etc/conky/
mv ${DESTDIR}/usr/share/conky/conky_no_x11.conf ${DESTDIR}/etc/conky/
vlicense COPYING
}
2015-08-26 05:39:20 +02:00