75 lines
2.4 KiB
Bash
75 lines
2.4 KiB
Bash
# Template file for 'conky'
|
|
pkgname=conky
|
|
version=1.21.4
|
|
revision=1
|
|
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_CURL=ON
|
|
-DBUILD_RSS=ON -DBUILD_WLAN=ON -DBUILD_X11=ON -DBUILD_XDBE=ON
|
|
-DBUILD_IMLIB2=ON -DBUILD_LUA_CAIRO=ON -DBUILD_LUA_IMLIB2=ON
|
|
-DBUILD_LUA_RSVG=ON -DBUILD_XSHAPE=ON"
|
|
hostmakedepends="libtool pkg-config docbook2x man-db toluapp gperf"
|
|
makedepends="alsa-lib-devel imlib2-devel libXdamage-devel libXft-devel
|
|
libXinerama-devel libcurl-devel librsvg-devel lua53-devel ncurses-devel
|
|
toluapp-devel wireless_tools-devel cairo-devel wayland-devel"
|
|
short_desc="Lightweight system monitor for X and Wayland"
|
|
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
|
|
https://github.com/brndnmtthws/conky/releases/download/v${version}/conky.1.gz"
|
|
checksum="567607122272f4d7d9c2665319b5c17c1aab1f953d388fbfcf4b22c5acab4480
|
|
ce4d49dd9e1f9eafe668c21c456ad81257fff6975139e0bf0806e3d3f1ff19ed"
|
|
|
|
post_extract() {
|
|
mv conky-*/* .
|
|
}
|
|
|
|
post_configure() { # conky-cli
|
|
configure_args="-DMAINTAINER_MODE=ON -DRELEASE=ON -DDOC_PATH=share/doc/${pkgname}
|
|
-DBUILD_X11=OFF -DBUILD_WAYLAND=OFF -DBUILD_CURL=ON -DBUILD_XDBE=OFF
|
|
-DBUILD_RSS=ON -DBUILD_IMLIB2=OFF -DBUILD_WLAN=ON"
|
|
(
|
|
cmake_builddir="cli-build"
|
|
do_configure
|
|
)
|
|
}
|
|
|
|
post_build() { # conky-cli
|
|
(
|
|
DESTDIR=${DESTDIR/conky/conky-cli}
|
|
cmake_builddir="cli-build"
|
|
do_build
|
|
)
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir etc/conky
|
|
mv ${DESTDIR}/usr/share/doc/conky/conky.conf ${DESTDIR}/etc/conky/
|
|
mv ${DESTDIR}/usr/share/doc/conky/conky_no_x11.conf ${DESTDIR}/etc/conky/
|
|
rm ${DESTDIR}/usr/share/doc/conky/convert.lua
|
|
vlicense COPYING
|
|
vman conky.1
|
|
(
|
|
DESTDIR=${DESTDIR/conky/conky-cli}
|
|
cmake_builddir="cli-build"
|
|
do_install
|
|
)
|
|
}
|
|
|
|
conky-cli_package() {
|
|
short_desc="Conky command line without X11 or Wayland"
|
|
provides="conky-${version}_${revision}"
|
|
conflicts="conky>=0"
|
|
pkg_install() {
|
|
DESTDIR="${pkgname}-${version}"
|
|
mkdir -p ${PKGDESTDIR}/etc/conky
|
|
mv ${PKGDESTDIR}/usr/share/doc/conky/conky.conf ${PKGDESTDIR}/etc/conky/
|
|
mv ${PKGDESTDIR}/usr/share/doc/conky/conky_no_x11.conf ${PKGDESTDIR}/etc/conky/
|
|
rm ${PKGDESTDIR}/usr/share/doc/conky/convert.lua
|
|
vlicense COPYING
|
|
vman ${wrksrc}/conky.1
|
|
}
|
|
}
|