summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore27
-rw-r--r--PKGBUILD41
-rw-r--r--macfanctld.service9
4 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..85876b21354
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = macfanctld
+ pkgdesc = Fan control daemon for MacBook
+ pkgver = 0.6
+ pkgrel = 1
+ url = https://github.com/MikaelStrom/macfanctld
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = gcc
+ depends = glibc
+ backup = etc/macfanctl.conf
+ source = https://github.com/MikaelStrom/macfanctld/archive/master.tar.gz
+ source = macfanctld.service
+ md5sums = d1a42fe34cbb4e830bed5547bef969df
+ md5sums = 3ae082c7be885c8427eee8108393fc90
+
+pkgname = macfanctld
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..43316bc3c12
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
+# From: https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore
+
+*.tar
+*.tar.*
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+# makepkg working folders
+pkg
+src
+
+#
+# Additional ignore patterns:
+#
+
+# Source files
+*.deb
+*.gem
+*.out
+*.rpm
+*.html
+
+# Ignore package source folders
+*/*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f028a5b30fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: James An <james@jamesan.ca>
+# Contributor: Edgar Hucek <gimli at dark-green dot com>
+
+pkgname=macfanctld
+pkgver=0.6
+pkgrel=1
+arch=(i686 x86_64)
+pkgdesc="Fan control daemon for MacBook"
+url="https://github.com/MikaelStrom/macfanctld"
+license="GPL3"
+makedepends=('gcc')
+depends=('glibc')
+backup=('etc/macfanctl.conf')
+source=(
+ "https://github.com/MikaelStrom/$pkgname/archive/master.tar.gz"
+ "$pkgname.service"
+)
+md5sums=('d1a42fe34cbb4e830bed5547bef969df'
+ '3ae082c7be885c8427eee8108393fc90')
+
+prepare() {
+ cd "$pkgname-master"
+
+ gzip -9f macfanctld.1
+}
+
+build() {
+ cd "$pkgname-master"
+
+ make
+}
+
+package() {
+ cd "$pkgname-master"
+
+ install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "${pkgname%d}.conf" "$pkgdir/etc/${pkgname%d}.conf"
+ install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
+
+ install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+}
diff --git a/macfanctld.service b/macfanctld.service
new file mode 100644
index 00000000000..c3743414ee4
--- /dev/null
+++ b/macfanctld.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Mac Fan Control Daemon
+Documentation=man:macfanctld(1)
+
+[Service]
+ExecStart=/usr/bin/macfanctld -f
+
+[Install]
+WantedBy=multi-user.target