#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=conky pkgver=1.19.7 _gitcommit=70ef89411aa0a70c5b25318d0329e1d9e57838d2 # refs/tags/v1.19.7 pkgrel=02 pkgdesc='Light-weight system monitor for X, Wayland, and other things, too' url="https://github.com/brndnmtthws/conky" replaces=('torsmo' 'conky-lua' 'conky-lua-arch' 'conky-lua-archers-git' 'conky-cli') provides=("conky=${pkgver}") conflicts=('conky-lua' 'conky-lua-arch' 'conky-lua-nv' 'conky-lua-archers-git' 'conky-lua-archers' 'conky-cli') makedepends=('catch2-v2' 'cmake' 'docbook2x' 'docbook-xsl' 'git' 'man-db' 'python-yaml' 'python-jinja' 'wayland-protocols' 'pandoc-cli' 'wireless_tools' 'xorg-xinput' 'libxnvctrl') source=("git+$url.git#tag=${_gitcommit}?signed") #options=('strip' '!emptydirs') pkgver() { cd ${pkgname} git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $pkgname # Unbundle catch2 to fix build with glibc 2.35 rm -r tests/catch2 ln -s /usr/include/catch2 tests # Fix buffer overflow git cherry-pick -n 8dae420bc8d29ef8b77b1c60c6456233d952f98a git cherry-pick -n 27d64fe834589815a4067ca13f2214b7119037e1 } build() { cd ${pkgname} cmake \ -B build \ -D CMAKE_BUILD_TYPE=None \ -D CMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \ -D MAINTAINER_MODE=OFF \ -D BUILD_TESTS=ON \ -D BUILD_DOCS=ON \ -D BUILD_APCUPSD=OFF \ -D BUILD_ARGB=ON \ -D BUILD_EXTRAS=ON \ -D BUILD_WLAN=ON \ -D BUILD_XDBE=ON \ -D BUILD_XSHAPE=ON \ -D BUILD_HDDTEMP=OFF \ -D BUILD_I18N=OFF \ -D BUILD_IBM=OFF \ -D BUILD_IMLIB2=ON \ -D BUILD_CURL=ON \ -D BUILD_RSS=ON \ -D BUILD_NVIDIA=ON \ -D BUILD_PULSEAUDIO=OFF \ -D BUILD_JOURNAL=OFF \ -D BUILD_WAYLAND=ON \ -D BUILD_IOSTATS=OFF \ -D BUILD_IPV6=OFF \ -D BUILD_LUA_CAIRO=ON \ -D BUILD_LUA_IMLIB2=ON \ -D BUILD_LUA_RSVG=ON \ -D BUILD_MOC=OFF \ -D BUILD_MPD=OFF \ -D BUILD_OLD_CONFIG=ON \ -D BUILD_PORT_MONITORS=OFF \ -D BUILD_X11=ON \ -D BUILD_XDAMAGE=ON \ -D BUILD_XDBE=ON \ -D BUILD_XFT=ON \ -D BUILD_XINERAMA=ON \ -D DEFAULTNETDEV=eth0 \ -D OWN_WINDOW=ON \ -D CMAKE_INSTALL_PREFIX=/usr \ -Wno-dev \ -S . make -C build } package() { depends=('cairo' 'curl' libcurl.so 'fontconfig' 'gcc-libs' 'glib2' 'glibc' 'hicolor-icon-theme' 'imlib2' 'libpulse' libpulse.so 'libx11' 'libxdamage' 'libxext' 'libxfixes' 'libxft' 'libxi' 'libxinerama' 'libxml2' 'libxnvctrl' libXNVCtrl.so 'lua' 'ncurses' libncursesw.so 'pango' 'wayland' 'wireless_tools') cd ${pkgname} make -C build DESTDIR="${pkgdir}" install install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 build/extras/vim/syntax/conkyrc.vim -t "${pkgdir}"/usr/share/vim/vimfiles/syntax install -Dm 644 extras/vim/ftdetect/conkyrc.vim -t "${pkgdir}"/usr/share/vim/vimfiles/ftdetect } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=('BSD-3-Clause' 'GPL-3.0-or-later') #validpgpkeys=(EB2E847572A71BE20F59AFBEB49ABB7270D9D4FD) # Brenden Matthews #validpgpkeys=(AF310802C8EFA20499CF3556137B7AC2BDFD8DF0) # Brenden Matthews sha256sums=(SKIP) # conky ##