aboutsummaryrefslogtreecommitdiffstats
path: root/main/conky/APKBUILD
blob: 9601b4dcdffebb0e864810ec5b142e6e8a860838 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=conky
pkgver=1.12.1
pkgrel=0
pkgdesc="An advanced, highly configurable system monitor for X based on torsmo"
url="http://conky.sourceforge.net/"
arch="all"
license="custom"
makedepends="alsa-lib-dev libxml2-dev curl-dev wireless-tools-dev
	libxft-dev glib-dev libxdamage-dev libxext-dev imlib2-dev lua5.3-dev
	cairo-dev tolua++ ncurses-dev linux-headers cmake gawk libxinerama-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/brndnmtthws/conky/archive/v$pkgver.tar.gz"

prepare() {
	sed -i -e '32 iinclude(CheckIncludeFile)' CMakeLists.txt
	default_prepare
}

build() {
	cmake . \
		-DRELEASE=ON \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_CURL=ON \
		-DBUILD_XDBE=ON \
		-DBUILD_IMLIB2=ON \
		-DBUILD_RSS=ON \
		-DBUILD_WEATHER_METAR=ON \
		-DBUILD_WLAN=ON \
		-DBUILD_I18N=OFF \
		-DBUILD_LUA_CAIRO=ON
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="897c6b83528809aa2e33e15b9ad6644d8cf36f4cff93f014811754f982c13180001b972b2b145b607de8d865c2af9a425ab50246065f537e14be75da5631593a  conky-1.12.1.tar.gz"