Added Arch Linux support and BBS link [Fixes #31]
This commit is contained in:
parent
3f59ffac63
commit
423a94733c
4 changed files with 53 additions and 31 deletions
5
AUTHORS
5
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>
|
35
PKGBUILD
Normal file
35
PKGBUILD
Normal file
|
@ -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"
|
||||
}
|
|
@ -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
|
||||
}
|
20
README.md
20
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
|
||||
|
|
Loading…
Reference in a new issue