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

# source: james
TARBALL=mbpfan-$PKGVER.tar.gz
MD5SUM=b00873d4a898275cc08907daac195c68
SRC_URL=https://github.com/linux-on-mac/mbpfan/archive/refs/tags/v$PKGVER.tar.gz
BUNDLE=

SLACKREQ='' # 
SLACKDESC="mbpfan: mbpfan $PKGVER (Macbook(Pro) fan control daemon)
mbpfan: 
mbpfan: Mbpfan is a daemon that controls the fans of Macbook/Macbook Pro 
mbpfan: laptops. It uses input from coretemp module and sets the fan speed 
mbpfan: using the applesmc module.
mbpfan: 
mbpfan: https://github.com/linux-on-mac/mbpfan
mbpfan: http://ineed.coffee/projects/mbpfan/
mbpfan: 
mbpfan: 
mbpfan:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/mbpfan*
	make && make install &&
	pkg_build_slackdesc &&
	
	# drop initscript
	mkdir -p /etc/init.d &&
	install -m644 /tmp/pkg/15-mbpfan /etc/init.d &&

	rm -rf /lib/systemd # remove this crap
}
