mbpfan-josie

Added Arch Linux support and BBS link [Fixes #31]

423a94733cf2e19fff5d0c2e49c2897938adea8f
Daniel Graziotin <dgraziotin@task3.cc> · 2013-10-13T18:27 · browse files at this commit

parents: 3f59ffa

diff --git a/AUTHORS b/AUTHORS
index 3f50d62..d1e8933 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -2,12 +2,13 @@ AUTHORS, CONTRIBUTORS, MAINTAINERS
 ----------------------------------
 
 Daniel Graziotin        <dgraziotin AT task3 DOT cc>
+
 Ismail Khatib           <ikhatib AT gmail DOT com>
 Trevor Joynson
 Magnus Stubman          <magnus AT stubman DOT eu>
-
+Yamakaky                <yamakaky AT gmail DOT com>
 
 ORIGINARY AUTHORS
 -----------------
 Allan McRae mbpfan      <http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon>
-rvega                   <https://github.com/rvega/Fan-Control-Daemon>
+rvega                   <https://github.com/rvega/Fan-Control-Daemon>
\ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..41489e5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Yamakaky <yamakaky at_gmail_dot com>
+# Contributor: Allan McRae <allan at_archlinux_dot org>
+
+pkgname=mbpfan-git
+pkgver=v.1.5.0.2.ga2dacfd
+pkgrel=2
+pkgdesc="Automatically adjust the fan on a MacBook Pro"
+arch=('i686' 'x86_64')
+url="https://github.com/dgraziotin/Fan-Control-Daemon"
+license=('GPL3')
+makedepends=('git')
+provides=('mbpfan')
+source=("$pkgname"::'git://github.com/dgraziotin/Fan-Control-Daemon.git'
+        'mbpfan.install')
+md5sums=('SKIP'
+         'e9e2ccddee6f7177d9495781f09c8e39')
+install='mbpfan.install'
+
+pkgver(){
+    cd "$pkgname"
+    local ver="$(git describe --long)"
+    printf "%s" "${ver//-/.}"
+}
+
+build() {
+    cd "$pkgname"
+    make
+}
+
+package() {
+    cd "$pkgname"
+    install -Dm755 "$srcdir/$pkgname/bin/mbpfan" "$pkgdir/usr/bin/mbpfan"
+    install -Dm644 "$srcdir/$pkgname/mbpfan.conf" "$pkgdir/etc/mbpfan.conf"
+    install -Dm644 "$srcdir/$pkgname/mbpfan.service" "$pkgdir/usr/lib/systemd/system/mbpfan.service"
+}
diff --git a/PKGBUILD-not-maintained b/PKGBUILD-not-maintained
deleted file mode 100644
index 5ee9cf6..0000000
--- a/PKGBUILD-not-maintained
+++ /dev/null
@@ -1,24 +0,0 @@
-# not maintained in this project
-# Maintainer: Allan McRae <allan@archlinux.org>
-
-pkgname=mbpfan
-pkgver=1.1
-pkgrel=1
-pkgdesc="Automatically adjust the fan on a MacBook Pro"
-arch=('i686' 'x86_64')
-license=('GPL3')
-source=(mbpfan.c 
-        mbpfan.rc)
-
-md5sums=('57be3248ffa6563f06435f0b3b3451f5'
-         '6b58ce23ade4c2ccb8cadc004bb9e172')
-
-build() {
-  cd $srcdir/
-  gcc -o mbpfan -lm -Wall $CFLAGS $LDFLAGS mbpfan.c
-}
-
-package() {
-  install -Dm755 $srcdir/mbpfan $pkgdir/usr/bin/mbpfan
-  install -Dm755 $srcdir/mbpfan.rc $pkgdir/etc/rc.d/mbpfan
-}
diff --git a/README.md b/README.md
index 9da47a9..3d6b4b1 100644
--- a/README.md
+++ b/README.md
@@ -47,15 +47,25 @@ Warning
 Be sure to load the kernel modules **applesmc** and **coretemp**.
 
 
-Compile Instructions
----------------------
+Arch Linux
+---------
+See [mbpfan-git at AUR](https://aur.archlinux.org/packages/mbpfan-git/).
+Otherwise, please refer to the Generic Instructions.
+
+
+Ubuntu
+------
+
+Install the ```build-essential``` package.
+Then, refer to the Generic Install Instructions.
+
+
+Generic Install Instructions
+-------------------------
 Compile with
 
     make
 
-
-Install Instructions
---------------------
 Install with
 
     sudo make install