dotfiles/dot_local/share/packages/conky-lua/PKGBUILD

86 lines
2.7 KiB
Bash
Raw Normal View History

2021-03-09 22:54:15 -05:00
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Maintainer: TidestManager1 < michaelpulliam1 (at) gmail (dot) com >
pkgname=conky-lua
_pkgname=conky
2024-07-12 13:02:44 -04:00
pkgver=1.20.2
2021-03-09 22:54:15 -05:00
pkgrel=1
pkgdesc='Lightweight system monitor for X, with Lua support enabled'
url='http://github.com/brndnmtthws/conky'
license=('BSD' 'GPL3')
arch=('i686' 'x86_64')
options=('!emptydirs')
2022-08-04 15:26:26 -04:00
makedepends=('cmake'
2021-03-09 22:54:15 -05:00
# 'docbook2x'
# 'docbook-xml'
# 'docbook-xsl'
# 'librsvg'
2022-08-04 15:26:26 -04:00
'libxinerama')
2021-03-09 22:54:15 -05:00
# 'libxml2'
# 'man-db'
# 'perl-xml-libxml')
depends=('cairo' 'glib2' 'libxml2' 'lua')
provides=("conky=$pkgver")
conflicts=('conky')
backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf')
2023-09-30 01:05:13 -04:00
source=("https://github.com/brndnmtthws/${_pkgname}/archive/v${pkgver}.tar.gz")
2024-07-12 13:02:44 -04:00
sha1sums=('9074e2593eedac33b723bd18c4e939bb40b853b6')
2021-03-09 22:54:15 -05:00
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
## ensure our awesome makepkg flags are used (mostly mnative)
sed -i "s/\(CMAKE_C_FLAGS\) \"\(.*\)\"/\1 \"\2 ${CFLAGS}\"/" cmake/ConkyBuildOptions.cmake
sed -i "s/\(CMAKE_CXX_FLAGS\) \"\(.*\)\"/\1 \"\2 ${CXXFLAGS}\"/" cmake/ConkyBuildOptions.cmake
## enable longer pids
2023-06-02 22:59:10 -04:00
# patch --strip=2 --input=${srcdir}/longerpid.patch
2021-03-09 22:54:15 -05:00
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
cmake \
-D CMAKE_INSTALL_PREFIX=/usr \
-D MAINTAINER_MODE=OFF \
-D BUILD_APCUPSD=OFF \
2023-06-02 22:59:10 -04:00
-D BUILD_ARGB=ON \
2021-03-09 22:54:15 -05:00
-D BUILD_BUILTIN_CONFIG=OFF \
-D BUILD_CMUS=OFF \
-D BUILD_CURL=OFF \
-D BUILD_HDDTEMP=OFF \
-D BUILD_IBM=OFF \
-D BUILD_I18N=OFF \
-D BUILD_IOSTATS=OFF \
-D BUILD_IPV6=OFF \
-D BUILD_LUA_RSVG=OFF \
-D BUILD_LUA_CAIRO=ON \
-D BUILD_LUA_IMLIB2=OFF \
-D BUILD_IMLIB2=OFF \
-D BUILD_MATH=OFF \
-D BUILD_MOC=OFF \
-D BUILD_MPD=OFF \
-D BUILD_NCURSES=OFF \
-D BUILD_OLD_CONFIG=OFF \
-D BUILD_PORT_MONITORS=OFF \
-D BUILD_TESTING=OFF \
-D BUILD_RSS=OFF \
-D BUILD_WEATHER_METAR=OFF \
-D BUILD_WEATHER_XOAP=OFF \
-D BUILD_XDAMAGE=OFF \
-D BUILD_XDBE=ON \
-D BUILD_XFT=OFF \
-D BUILD_XINERAMA=ON \
-D BUILD_XSHAPE=OFF \
-D BUILD_WLAN=OFF \
.
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2023-06-02 22:59:10 -04:00
# install -Dm644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conkyrc.vim
2021-03-09 22:54:15 -05:00
install -Dm644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conkyrc.vim
}