diff --git a/srcpkgs/mbpfan/files/README.voidlinux b/srcpkgs/mbpfan/files/README.voidlinux deleted file mode 100644 index ae71c9b9944..00000000000 --- a/srcpkgs/mbpfan/files/README.voidlinux +++ /dev/null @@ -1 +0,0 @@ -It's recommended that you run tests with 'sudo mbpfan -t' after installation. diff --git a/srcpkgs/mbpfan/patches/fix_paths_and_remove_systemd.patch b/srcpkgs/mbpfan/patches/fix_paths_and_remove_systemd.patch new file mode 100644 index 00000000000..6d94509c4e2 --- /dev/null +++ b/srcpkgs/mbpfan/patches/fix_paths_and_remove_systemd.patch @@ -0,0 +1,31 @@ +--- a/Makefile 2023-04-02 10:04:13.000000000 +0200 ++++ b/Makefile 2025-06-19 19:30:45.487560838 +0200 +@@ -51,22 +51,20 @@ + ./bin/mbpfan-tests + + uninstall: +- rm /usr/sbin/mbpfan ++ rm /usr/bin/mbpfan + rm /etc/mbpfan.conf +- rm /lib/modules-load.d/mbpfan.depend.conf +- rm /lib/systemd/system/mbpfan.service ++ rm /usr/lib/modules-load.d/mbpfan.depend.conf + rm /usr/share/man/man8/mbpfan.8.gz + rm -rf /usr/share/doc/mbpfan + + install: all +- install -d $(DESTDIR)/usr/sbin ++ install -d $(DESTDIR)/usr/bin + install -d $(DESTDIR)/etc +- install -d $(DESTDIR)/lib/systemd/system + install -d $(DESTDIR)/usr/share/doc/mbpfan +- install -d $(DESTDIR)/lib/modules-load.d +- install $(BIN) $(DESTDIR)/usr/sbin ++ install -d $(DESTDIR)/usr/lib/modules-load.d ++ install $(BIN) $(DESTDIR)/usr/bin + install -m644 $(CONF) $(DESTDIR)/etc +- install -m644 $(DEPEND_MODULE) $(DESTDIR)/lib/modules-load.d ++ install -m644 $(DEPEND_MODULE) $(DESTDIR)/usr/lib/modules-load.d + install -m644 $(DOC) $(DESTDIR)/usr/share/doc/mbpfan + install -d $(DESTDIR)/usr/share/man/man8 + install -m644 $(MAN) $(DESTDIR)/usr/share/man/man8 diff --git a/srcpkgs/mbpfan/template b/srcpkgs/mbpfan/template index b85e9e04a57..08cb7d755d3 100644 --- a/srcpkgs/mbpfan/template +++ b/srcpkgs/mbpfan/template @@ -1,22 +1,17 @@ # Template file for 'mbpfan' pkgname=mbpfan -version=2.2.1 +version=2.4.0 revision=1 archs="x86_64* i686*" # it's MacBook-specific and MacBooks only have these arches. build_style=gnu-makefile conf_files="/etc/mbpfan.conf" short_desc="MacBook Pro fan control daemon" -maintainer="noah " +maintainer="Mateusz Sylwestrzak " license="GPL-3.0-or-later" -homepage="https://github.com/dgraziotin/mbpfan" -distfiles="https://github.com/dgraziotin/mbpfan/archive/v${version}.tar.gz" -checksum=52a3a79d99f775fe90917a0958e527ea14ff5b83d010164bd91f7cc3ce046b6a - -pre_build() { - sed -i 's|/usr/sbin|/usr/bin|' Makefile -} +homepage="https://github.com/linux-on-mac/mbpfan" +distfiles="https://github.com/linux-on-mac/mbpfan/archive/v${version}.tar.gz" +checksum=e1cdcffaba52be215ae40a8568949190866d500d6ae2a1e96b71ab5372f3580b post_install() { vsv mbpfan - vdoc "${FILESDIR}/README.voidlinux" }