wok-6.x view slitaz-eeepc/receipt @ rev 24692
updated jsoncpp (1.9.2 -> 1.9.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 12 15:46:33 2022 +0100 (2022-03-12) |
parents | eb8067417980 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-eeepc"
4 VERSION="1.2"
5 CATEGORY="system-tools"
6 MAINTAINER="pankso@slitaz.org"
7 LICENSE="GPL3"
8 WEB_SITE="http://www.slitaz.org/"
10 SHORT_DESC="SliTaz EeePC scripts and configuration files."
11 DEPENDS="915resolution dmidecode linux-acpi linux-wireless"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p \
17 $fs/etc/init.d \
18 $fs/etc/skel/Desktop \
19 $fs/usr/share/doc/slitaz-flavors \
20 $fs/sbin
21 # Tool and boot script
22 cp stuff/eeepc.sh $fs/etc/init.d
23 cp stuff/tazeee $fs/sbin
24 # Images
25 cp -a stuff/images $fs/usr/share
26 cp -a stuff/pixmaps $fs/usr/share
27 # Doc
28 cp -a stuff/eeepc.html $fs/usr/share/doc/slitaz-flavors
29 # Desktop icon
30 cp -a stuff/applications/tazeee.desktop $fs/etc/skel/Desktop
31 # Config
32 touch $fs/etc/eeepc.conf
33 chown -R root.root $fs
34 }
36 pre_install()
37 {
38 . "$1/etc/rcS.conf"
39 sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ "$1/etc/rcS.conf"
40 # Load module ac and battery
41 sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
42 "$1/etc/rcS.conf"
43 }
45 pre_remove()
46 {
47 sed -i s/'RUN_SCRIPTS="eeepc.sh '/'RUN_SCRIPTS="'/ /etc/rcS.conf
48 }