blob: af5c4afb55fa5722bd6e371a87917b2440063448 (
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
|
# Maintainer: ondoho <ohnonot-github@posteo.de>
# Contributor: Jon Wilson <bugs@pandorica.net>
# Contributor: Spyros Stathopoulos <foucault.online[at]gmail[dot]com>
# 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=conky19
_pkgname=conky
pkgver=1.9.0
pkgrel=11
pkgdesc="Advanced system monitor for X - minimal configuration - can coexist with other conky versions"
arch=('i686' 'x86_64')
url="https://github.com/brndnmtthws/conky/"
license=('GPL3')
provides=('conky')
depends=('libxml2' 'curl' 'cairo' 'libxft' 'glib2' 'libxdamage' 'imlib2')
makedepends=('pkgconfig' 'docbook2x' 'docbook-xml' 'docbook-xsl')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/brndnmtthws/${_pkgname}/archive/${pkgver}.tar.gz" "conky.h.patch")
md5sums=('b13f2c7d52e18d94bfbfcd5157406db7' '3a4ebcc2e18685302945944f7bc0c87b')
prepare() {
cd ${srcdir}/${_pkgname}-${pkgver}
sed -i '/#include <curl\/types.h>/d' ${srcdir}/${_pkgname}-${pkgver}/src/ccurl_thread.c
# use "conky19" instead of "conky", so that this version can coexist with normal conky.
grep -Irlm1 \${sysconfdir}/conky | while read file; do sed -i "s#\${sysconfdir}/conky#\${sysconfdir}/${pkgname}#g" "$file"; done
grep -Irlm1 etc/conky.conf | while read file; do sed -i "s#etc/conky#etc/${pkgname}#g" "$file"; done
cd src
patch -i ../../conky.h.patch
}
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
./autogen.sh
CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-wlan \
--disable-rss \
--disable-ibm \
--enable-imlib2 \
--disable-lua \
--disable-lua-cairo \
--disable-lua-imlib2 \
--disable-nvidia \
--disable-ncurses \
--disable-hddtemp \
--disable-apcupsd \
--disable-math \
--disable-mmpd \
--disable-moc \
--disable-argb \
--disable-lua \
--disable-alsa \
--program-suffix=19
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
mkdir -p ${pkgdir}/usr/share/doc/${pkgname}/
for file in doc/*.html; do
install -D -m644 "$file" ${pkgdir}/usr/share/doc/${pkgname}/
done
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/${pkgname}rc.vim
install -D -m644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/${pkgname}rc.vim
}
|