opt/conky/Pkgfile

30 lines
840 B
Plaintext
Raw Normal View History

2008-08-15 10:42:19 +02:00
# Description: Light-weight system monitor
2021-03-05 12:02:45 +01:00
# URL: https://github.com/brndnmtthws/conky
# Maintainer: Juergen Daubert, jue at crux dot nu
2023-02-19 13:23:53 +01:00
# Depends on: cmake curl imlib2 libxml2 lua xorg-libxdamage xorg-libxft xorg-libxinerama
2006-02-23 16:26:10 +01:00
name=conky
2024-04-18 16:24:09 +02:00
version=1.20.1
release=1
2020-07-30 12:04:00 +02:00
source=(https://github.com/brndnmtthws/conky/archive/v$version/$name-$version.tar.gz)
2006-02-23 16:26:10 +01:00
build() {
2022-12-27 11:40:20 +01:00
prt-get isinst wayland && PKGMK_CONKY+=' -D BUILD_WAYLAND=ON'
2023-10-11 08:59:21 +02:00
2022-12-27 11:40:20 +01:00
cmake -S $name-$version -B build -G Ninja $PKGMK_CONKY \
2021-03-05 12:02:45 +01:00
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D SYSTEM_CONFIG_FILE=/usr/etc/conky.conf \
-D BUILD_DOCS=OFF \
-D BUILD_I18N=OFF \
-D BUILD_CURL=ON \
-D BUILD_RSS=ON \
-D RELEASE=TRUE
2023-10-11 08:59:21 +02:00
2021-03-05 12:02:45 +01:00
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
2023-10-11 08:59:21 +02:00
2021-03-05 12:02:45 +01:00
rm -r $PKG/usr/share/doc
2006-02-23 16:26:10 +01:00
}