-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
35 lines (29 loc) · 1.22 KB
/
PKGBUILD
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
#
# Maintainer: Paul Dunn <pwjdunn AT gmail DOT com>
#
pkgname=xpsfan_smm
pkgver=0.23
pkgrel=1
arch=('i686' 'x86_64')
license=('')
depends=('intel-gpu-tools')
makedepends=('gcc-multilib')
options=('!strip')
source=("https://launchpad.net/i8kutils/trunk/1.42/+download/i8kutils_1.42.tar.xz")
sha256sums=('SKIP')
validpgpkeys=()
build() {
gcc -m32 -o "$srcdir/"smm "$srcdir"/i8kutils/smm.c
}
package() {
install -Dm755 "$srcdir"/smm "$pkgdir"/usr/local/bin/smm
install -Dm755 "$srcdir"/../fanlock/xps_fan-lock "$pkgdir"/usr/local/bin/xps_fan-lock
install -Dm755 "$srcdir"/../fanlock/xps_fan-unlock"$pkgdir"/usr/local/bin/xps_fan-unlock
install -Dm755 "$srcdir"/../silentmode/xps_fan-original "$pkgdir"/usr/local/bin/xps_fan-original
install -Dm755 "$srcdir"/../silentmode/xps_fan-silent "$pkgdir"/usr/local/bin/xps_fan-silent
install -Dm755 "$srcdir"/../gpufreq/xps_fan-gpuup "$pkgdir"/usr/local/bin/xps_fan-gpuup
install -Dm755 "$srcdir"/../gpufreq/xps_fan-gpudown "$pkgdir"/usr/local/bin/xps_fan-gpudown
install -Dm755 "$srcdir"/../gpufreq/xps_fan-gpulowhigh "$pkgdir"/usr/local/bin/xps_fan-gpulowhigh
chmod +x "$pkgdir"/usr/local/bin/smm
chmod +x "$pkgdir"/usr/local/bin/xps_fan-*
}