summaryrefslogtreecommitdiffstats
path: root/main/conky/APKBUILD
blob: 44bae045509c1b86bf375cb1b163989e6356fa91 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=conky
pkgver=1.9.0
pkgrel=1
pkgdesc="An advanced, highly configurable system monitor for X based on torsmo"
url="http://conky.sourceforge.net/"
arch="all"
license="custom"
depends=""
makedepends="pkgconfig alsa-lib-dev libxml2-dev curl-dev wireless-tools-dev
	libxft-dev glib-dev libxdamage-dev libxext-dev imlib2-dev lua-dev
	cairo-dev tolua++ ncurses-dev
	"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/project/conky/conky/$pkgver/conky-$pkgver.tar.bz2
	conky-1.8.1-secunia-SA43225.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-wlan \
		--enable-rss \
		--enable-ibm \
		--enable-imlib2 \
		--enable-lua \
		--enable-lua-cairo \
		--enable-lua-imlib2 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
	rm "$pkgdir"/usr/lib/conky/*.la
}

md5sums="d3de615f43aadc98d555e05ad9e902c2  conky-1.9.0.tar.bz2
e00e00b1e4dd77536f8caed7a2b851c1  conky-1.8.1-secunia-SA43225.patch"
sha256sums="baf1b550f135fbfb53e5e286a33aadc03a667d63bf6c4d52ba7637366295bb6f  conky-1.9.0.tar.bz2
b90aebf0414a3335a466ccef2a3d6b1a9692f8f262a17d00b2b5555649acc26a  conky-1.8.1-secunia-SA43225.patch"
sha512sums="98c9f69fd8bee2062e3eddeb7a394cce932199ffd6c8664006d1222f0453569406613e63637848c77a455f7dae3f16be3079a2cab56ecafea51ec043de23c889  conky-1.9.0.tar.bz2
13c115d1ec47f04e36764631cc4e1eca6fa9ddc49ac447e380d9b26b6c4b16c7257b1bbe3f5a075c1fd1e04801ef5c257bc35cc9800b67bdf1af1c814656c0c0  conky-1.8.1-secunia-SA43225.patch"