### this file is sourced not run
PKGVER=0.63
PKGBUILD=1
PKGARCH=x86_64

# source: mick
TARBALL=pmcputemp-082016.tar.xz
MD5SUM=1377dde0b98df39860c786827a4fa243
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/$TARBALL
BUNDLE=

SLACKREQ='libX11 gtk2 cairo' #
SLACKDESC='pmcputemp: pmcputemp 0.63 (Tray CPU temperature monitor)
pmcputemp:
pmcputemp: pmcputemp is a small program to to show the CPU temperature in
pmcputemp: the system tray.
pmcputemp:
pmcputemp: 
pmcputemp:
pmcputemp:
pmcputemp: https://github.com/01micko/pmcputemp
pmcputemp:
pmcputemp:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/pmcputemp* &&
	patch -Np1 -i ../pkg/pmcputemp-increase_max.patch
}
### default pkg_package
### build
pkg_build() {
    cd /tmp/pmcputemp*
    ./configure --prefix=/usr --libdir=/lib64 &&
    make && make install &&
    pkg_build_slackdesc &&
    
    # startup file
    mkdir -p /etc/xdg/Startup && 
    install -m644 /tmp/pkg/pmcputemp.sh /etc/xdg/Startup
}
