blob: 61e5133b82ed45a581de28d875f8031990280af7 (
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
44
45
46
47
|
# Description: Pilote hotkey pour Acer
# URL: "http://www.cakey.de/acerhk/index.html"
# Maintainer: nutyx core team
# Packager: geantbrun
# Depends on:
name=acerhk
version=0.5.35
release=1
source=(http://www.cakey.de/acerhk/archives/$name-$version.tgz \
http://nutyx.meticul.eu/files/patch/$name/1.0.4.3.arm \
$name $name-$version-kernel-2.6.30.patch $name-$version-kernelversion-01.patch)
_kernver=`uname -r`
build() {
# firmware
mkdir -p $PKG/lib/firmware
cp $SRC/1.0.4.3.arm $PKG/lib/firmware/
ln -s 1.0.4.3.arm $PKG/lib/firmware/isl3890
# module kernel
cd $SRC/$name-$version
sed -i 's/CFLAGS/EXTRA_CFLAGS/' Makefile
patch -Np1 -i $SRC/acerhk-0.5.35-kernel-2.6.30.patch
patch -N -p1 < $SRC/acerhk-0.5.35-kernelversion-01.patch
# Set KERNELSRC. The makefile tries to autodetect it with uname,
# but that is unreliable.
make KERNELSRC="/lib/modules/${_kernver}/build" acerhk.ko
install -Dm644 "$SRC/$name-$version/acerhk.ko" \
$PKG/lib/modules/${_kernver}/kernel/drivers/block/acerhk.ko
# Service
install -Dm755 $SRC/acerhk $PKG/etc/rc.d/init.d/acerhk
mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d
for i in 2 3 4 5
do
ln -s ../init.d/acerhk $PKG/etc/rc.d/rc$i.d/S25acerhk
done
for i in 0 1 6
do
ln -s ../init.d/acerk $PKG/etc/rc.d/rc$i.d/K85acerhk
done
}
|