blob: d46133a93910424695a0c3ded721fd1027637a23 (
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
37
38
39
40
41
42
43
|
# Maintainer: Yakov Till <yakov.till@gmail.com>
# Contributor: 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=7
pkgdesc='A simple daemon to control fan speed on all MacBook/MacBook Pros'
arch=('x86_64' 'i686')
url='https://github.com/linux-on-mac/mbpfan'
license=('GPL-3.0-or-later')
makedepends=('git')
depends=('glibc')
provides=('mbpfan')
conflicts=('mbpfan')
source=("$pkgname::git+https://github.com/linux-on-mac/mbpfan.git#tag=v$pkgver")
md5sums=('9030df16eb2bbe616eadf9d1de477d90')
backup=('etc/mbpfan.conf')
latestver() {
gh api --paginate repos/linux-on-mac/mbpfan/tags --jq '.[].name' |
sed -nE 's/^v([0-9]+(\.[0-9]+)*)$/\1/p' | sort -V | tail -1
}
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"
}
|