wok view linux-libre-acpi/receipt @ rev 12296

Modify WGET_URL
author Stanislas Leduc <shann@slitaz.org>
date Mon Apr 16 12:12:13 2012 +0200 (2012-04-16)
parents abe27fd0192d
children 03a6791abff6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-acpi"
4 VERSION="2.6.37-libre"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux Libre kernel acpi modules."
7 DEPENDS="linux-libre"
8 MAINTAINER="gokhlayeh@slitaz.org"
9 PROVIDE="linux-acpi"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 local path
17 path=lib/modules/$VERSION-slitaz/kernel
18 mkdir -p $fs/$path
19 export src
20 export _pkg
21 $wanted_stuff/list_modules.sh drivers/acpi drivers/platform/x86/thinkpad_acpi.ko.gz \
22 drivers/platform/x86/asus-laptop.ko.gz drivers/platform/x86/eeepc-wmi.ko.gz \
23 drivers/platform/x86/msi-laptop.ko.gz drivers/platform/x86/panasonic-laptop.ko.gz \
24 drivers/platform/x86/sony-laptop.ko.gz drivers/platform/x86/acer-wmi.ko.gz \
25 drivers/platform/x86/hp-wmi.ko.gz drivers/platform/x86/wmi.ko.gz \
26 drivers/platform/x86/classmate-laptop.ko.gz drivers/platform/x86/topstar-laptop.ko.gz | \
27 while read module; do
28 dir=$path/$(dirname $module)
29 [ -d $fs/$dir ] || mkdir -p $fs/$dir
30 cp -a $_pkg/$path/$module $fs/$dir
31 done
33 for i in $(cat $wanted_stuff/modules-$VERSION.list); do
34 if [ $fs/lib/modules/$VERSION-slitaz/kernel/$i ]; then
35 rm -f $fs/lib/modules/$VERSION-slitaz/kernel/$i
36 fi
37 done
38 }
40 # Post install/remove commands for Tazpkg.
41 post_install()
42 {
43 chroot "$1/" depmod -a $VERSION-slitaz
44 }
46 post_remove()
47 {
48 chroot "$1/" depmod -a $VERSION-slitaz
49 }