blob: 3d2a6735ffb2b108efd2fbcf9e64a409c51ac168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Harrison <contact@htv04.com>
# Contributor: Jack Kamm <jackkamm at gmail dot com>
# Contributor: Jonathan Gruber <gruberjonathan at gmail dot com>
# Contributor: Yamakaky <yamakaky at gmail dot com>
# Contributor: Allan McRae <allan at archlinux dot org>
pkgname=mbpfan
pkgver=2.4.0
pkgrel=1
pkgdesc='A simple daemon to control fan speed on all MacBook/MacBook Pros'
arch=('any')
url='https://github.com/linux-on-mac/mbpfan'
license=('GPL3')
makedepends=('git')
provides=('mbpfan')
conflicts=('mbpfan')
source=("$pkgname::git+https://github.com/linux-on-mac/mbpfan.git#tag=v$pkgver")
md5sums=('SKIP')
backup=('etc/mbpfan.conf')
prepare(){
cd "$srcdir/$pkgname"
sed -i 's|\$(DESTDIR)/usr/sbin|$(DESTDIR)/usr/bin|g' 'Makefile'
sed -i 's|\$(DESTDIR)/lib/|$(DESTDIR)/usr/lib/|g' 'Makefile'
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
DESTDIR="$pkgdir" make install
install -Dm644 "mbpfan.service" "$pkgdir/usr/lib/systemd/system/mbpfan.service"
}
|