aboutsummaryrefslogblamecommitdiffstats
path: root/main/conky/APKBUILD
blob: 66daf679e249017747d74dd1ba868e4f378a40d2 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
             
        

                                                                               
          

                
                                                                 
                                                                            
                                                                               

                          
                                                                                              

                                    

                       
                                     





                                                                        
                                                                 



                       










                                             









                                                                            


                                                                                                                                                                  
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=conky
pkgver=1.10.3
pkgrel=0
pkgdesc="An advanced, highly configurable system monitor for X based on torsmo"
url="http://conky.sourceforge.net/"
arch="all"
license="custom"
depends=""
makedepends="alsa-lib-dev libxml2-dev curl-dev wireless-tools-dev
	libxft-dev glib-dev libxdamage-dev libxext-dev imlib2-dev lua5.2-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"

_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
	sed -i -e '32 iinclude(CheckIncludeFile)' CMakeLists.txt 
}

build() {
	cd "$_builddir"
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_CURL=ON \
		-DBUILD_XDBE=ON \
		-DBUILD_IMLIB2=ON \
		-DBUILD_RSS=ON \
		-DBUILD_WEATHER_METAR=ON \
		-DBUILD_WEATHER_XOAP=ON \
		-DBUILD_WLAN=ON \
		 -DBUILD_I18N=OFF \
		|| return 1
	make || return 1
}

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

md5sums="b0ea9ce03d5a109317988de702eddd06  conky-1.10.3.tar.gz"
sha256sums="456342fca8e33f1bfce1b4020586e05b7f89953f846c42e6cf570b766bf62bd5  conky-1.10.3.tar.gz"
sha512sums="97f4db6bc501d37e0a0684df3cf1bf5a64ad9cf3ba3d7dff7403e80c51654c3b01bb05ad9fd14ef32a1c6a56df2610257cd57fd5d8defe63b30b9437493f79ad  conky-1.10.3.tar.gz"