-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPKGBUILD.aur
More file actions
39 lines (31 loc) · 931 Bytes
/
PKGBUILD.aur
File metadata and controls
39 lines (31 loc) · 931 Bytes
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
# Contributor: Francesco Piccinno <stack.box@gmail.com>
pkgname=i8kmonitor
pkgver=0.1.0
pkgrel=1
pkgdesc="Simple fan control daemon for i8k (Dell Latitude and Inspiron notebooks)"
arch=(any)
url="http://github.com/nopper/i8kmonitor"
license=('GPL')
depends=('python' 'i8kutils')
makedepends=('make' 'git')
_pgitroot="git://github.com/nopper/i8kmonitor.git"
_pgitname="i8kmonitor"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_pgitname ] ; then
cd $_pgitname && git pull origin
msg "The local files are updated."
else
git clone $_pgitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_pgitname-build"
git clone "$srcdir/$_pgitname" "$srcdir/$_pgitname-build"
cd "$srcdir/$_pgitname-build"
git checkout -f v$pkgver
sed -i "s|ROOT =|ROOT = ${pkgdir}|" Makefile || return 1
make archlinux || return 1
}
# vim:set ts=2 sw=2 et: