# Contributor: Magnus Sandin # Maintainer: Magnus Sandin pkgname=thinkfan pkgver=1.3.1 pkgrel=0 pkgdesc="A simple, lightweight fan control program" url="https://github.com/vmatare/thinkfan" options="!check" # No tests available arch="x86 x86_64" license="GPL-3.0-only" makedepends="cmake yaml-cpp-dev libatasmart-dev openrc-dev samurai" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/vmatare/thinkfan/archive/refs/tags/$pkgver.tar.gz thinkfan-modprobe.conf thinkfan.conf " build() { cmake -B build \ -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=MinSizeRel cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -m644 -D "$srcdir"/thinkfan-modprobe.conf "$pkgdir"/etc/modprobe.d/$pkgname.conf install -m644 -D "$srcdir"/thinkfan.conf "$pkgdir"/etc/$pkgname.conf } sha512sums=" dbb92ab1a7f008ecb5c125b105191b9021cccf3b59f6dbd0fbdea03dd730b573214d8a44b219c4efd458a6cab94deae3bcbdca030db72e79ca221ba91f0c2c6c thinkfan-1.3.1.tar.gz efe63be0fd9d945c342891be2f26a736ab649cb9507526f8739b1cd79adeeaf753a20130d4376c77342a3bfc605c9ebcb4d53f19f9081caf298db7d4336752f6 thinkfan-modprobe.conf 9f9471724b8b6ebc83ec1b8db53f1b512a1dd2e8f7930403101e432e0deffa6d2788d0d204e9ac1be02c598d6c5dcbe4e7f78d484f9924d0a15cd308faee4269 thinkfan.conf "