blob: 8c57da42842d9ca0b109cd448469e7ee1ecc330f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Spyros Stathopoulos <foucault.online[at]gmail[dot]com>
# Contributor: Jon Wilson <bugs@pandorica.net>
# Contributor: Andrwe Lord Weber <lord-weber-andrwe [at] andrwe [dot] org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: James Rayner <james@archlinux.org>
# Contributor: Partha Chowdhury <kira.laucas@gmail.com>
pkgname=conky-lua-nv
_pkgname=conky
pkgver=1.21.7
pkgrel=1
pkgdesc="Lightweight system monitor for X with lua and nvidia enabled"
arch=('i686' 'x86_64')
url="https://github.com/brndnmtthws/conky"
license=('GPL' 'BSD')
replaces=('torsmo' 'conky')
conflicts=('conky')
provides=('conky' 'conky-lua')
depends=(
'glibc' 'glib2' 'cairo' 'lua' 'wireless_tools' 'libxdamage' 'libxinerama' 'libxft' 'imlib2'
'libxml2' 'ncurses' libncursesw.so 'libxnvctrl' libXNVCtrl.so 'systemd-libs' libsystemd.so
'libpulse' libpulse.so 'curl' libcurl.so 'fontconfig' 'gcc-libs' 'libx11' 'librsvg'
'libxfixes' 'libxi' 'libxext' 'pango' 'wayland' 'hicolor-icon-theme' 'alsa-lib')
makedepends=('cmake' 'docbook2x' 'docbook-xsl' 'man-db' 'git'
'pandoc' 'python-yaml' 'python-jinja' 'wayland-protocols'
'gperf' 'catch2-v2')
optdepends=('nvidia: for NV11 and newer GPUs',
'nvidia-470xx-dkms: for NVE0 (Maxwell) GPUs',
'nvidia-390xx-dkms: for NVC0 and GF1XX (Fermi) GPUs'
'nvidia-340xx-dkms: for NV40 and G70 (Curie) GPUs')
source=("https://github.com/brndnmtthws/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha1sums=('37767f0c325b31935a65492890d1b4b73b8e1321')
install='conky-lua-nv.install'
prepare() {
cd ${srcdir}/${_pkgname}-${pkgver}
rm -r tests/catch2
ln -s /usr/include/catch2 tests
}
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
cmake \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \
-D MAINTAINER_MODE=OFF \
-D BUILD_DOCS=ON \
-D BUILD_IMLIB2=ON \
-D BUILD_EXTRAS=ON \
-D BUILD_LUA_RSVG=ON \
-D BUILD_LUA_CAIRO=ON \
-D BUILD_LUA_IMLIB2=ON \
-D BUILD_WLAN=ON \
-D BUILD_XDBE=ON \
-D BUILD_XSHAPE=ON \
-D BUILD_HSV_GRADIENT=ON \
-D BUILD_IMLIB2=ON \
-D BUILD_CURL=ON \
-D BUILD_RSS=ON \
-D BUILD_NVIDIA=ON \
-D BUILD_PULSEAUDIO=ON \
-D BUILD_JOURNAL=ON \
-D BUILD_WAYLAND=ON \
-D CMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-S .
make -C build
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
make -C build DESTDIR=${pkgdir} install
install -D -m644 COPYING -t ${pkgdir}/usr/share/licenses/${pkgname}
install -D -m644 build/extras/vim/syntax/conkyrc.vim -t "${pkgdir}"/usr/share/vim/vimfiles/syntax/
install -D -m644 extras/vim/ftdetect/conkyrc.vim -t "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/
}
# vim:ts=2:et:sw=2
|