#Packager: George Vlahavas pkgname=thinkfan pkgver=1.3.1 pkgrel=1gv source=("https://github.com/vmatare/thinkfan/archive/refs/tags/$pkgver.tar.gz" "rc.thinkfan") docs=("readme.md" "install" "copying" "changelog" "authors" "news" "todo") url=https://github.com/vmatare/thinkfan options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "thinkfan (The minimalist fan control program)" "Thinkfan is a simple, lightweight fan control program. Originally" "designed specifically for IBM/Lenovo Thinkpads, it now supports any" "kind of system via the sysfs hwmon interface (/sys/class/hwmon). It is" "designed to eat as little CPU power as possible." ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_ATASMART:BOOL=ON \ -DUSE_YAML:BOOL=OFF \ .. make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/etc/rc.d install -m 755 $startdir/src/rc.thinkfan $startdir/pkg/etc/rc.d/rc.thinkfan }