diff options
author | geantbrun <geantbrun at gmail dot com> | 2010-11-14 21:59:19 +0100 |
---|---|---|
committer | geantbrun <geantbrun at gmail dot com> | 2010-11-14 21:59:19 +0100 |
commit | 3ab55f011ef4890a7539edd4e27c04e2fbe8954e (patch) | |
tree | 08f87163a943b55dc85114e440d694e9dd452c47 /acompiler/acerhk/Pkgfile | |
parent | 40b114afcd34dd9ccf216a1f7b157271d450764b (diff) | |
download | nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.gz nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.bz2 nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.xz nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.zip |
acerhk, nouveau port version 0.5.35-1
Diffstat (limited to 'acompiler/acerhk/Pkgfile')
-rw-r--r-- | acompiler/acerhk/Pkgfile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/acompiler/acerhk/Pkgfile b/acompiler/acerhk/Pkgfile new file mode 100644 index 000000000..61e5133b8 --- /dev/null +++ b/acompiler/acerhk/Pkgfile @@ -0,0 +1,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 +} |