1 # Maintainer: Mika Hynnä <igheax@gmail.com>
5 pkgdesc="ACPI scripts and AsusOSD for the Asus Eee PC"
6 url="http://kapsi.fi/ighea/eee/acpi-eee/"
10 depends=('acpid' 'vbetool')
11 makedepends=('deb2targz' 'unrar')
12 install=acpi-eee.install
13 backup=(etc/acpi/eee.conf)
15 volume-{up,down,toggle}
32 http://update.eeepc.asus.com/p701/pool/asus-acpi_1.38-1xandros5_i386.deb
33 ftp://ftp.asus.com/pub/ASUS/EeePC/701/ASUS_ACPI_071126.rar
36 asusosd-volume_toggle_fix.patch
37 asusosd-osd_configurable.patch
47 # Compile asusosd and install
48 unrar e -y ASUS_ACPI_071126.rar
49 tar xzf asus_osd.tar.gz
52 # Switch to /usr instead of /usr/local 2008.02.04 MWJ
53 sed -i 's|/usr/local|/usr|g' *
54 # Correct volume mute/on switching
55 patch -p0 < $startdir/asusosd-volume_toggle_fix.patch || return 1
56 patch -p0 < $startdir/asusosd-osd_configurable.patch || return 1
58 install -D -m0755 asusosd $startdir/pkg/usr/bin/asusosd
60 #and the flashy icons for asusosd
62 deb2targz asus-acpi_1.38-1xandros5_i386.deb || return 1
64 tar -xzf asus-acpi_1.38-1xandros5_i386.tar.gz
66 # install modified volume-control.sh needed by asusosd to show correct volume levels
67 #cp usr/local/bin/*.sh ${startdir}/pkg/usr/bin
68 install -m0755 volume_control.sh $startdir/pkg/usr/bin/ || return 1
69 mkdir ${startdir}/pkg/usr/share
70 cp -r usr/local/share/* ${startdir}/pkg/usr/share
72 #File for autostarting asusosd
73 install -D -m0644 ../Asusosd.desktop $startdir/pkg/etc/xdg/autostart/Asusosd.desktop
76 mkdir -p $startdir/pkg/etc/acpi
77 install -m0755 wlan.sh $startdir/pkg/etc/acpi/
78 install -m0755 suspend2ram.sh $startdir/pkg/etc/acpi/
79 install -m0755 display.sh $startdir/pkg/etc/acpi/
80 install -m0755 lid.sh $startdir/pkg/etc/acpi/
81 install -m0755 ap-button.sh $startdir/pkg/etc/acpi/
82 install -m0755 powersource.sh $startdir/pkg/etc/acpi/
83 install -m0755 power-button.sh $startdir/pkg/etc/acpi/
85 # install custom events
86 mkdir -p $startdir/pkg/etc/acpi/events
87 install -m0644 volume-{up,down,toggle} $startdir/pkg/etc/acpi/events/
88 install -m0644 wlan-{on,off} $startdir/pkg/etc/acpi/events/
89 install -m0644 button-{ap,power,sleep} $startdir/pkg/etc/acpi/events/
90 install -m0644 display-toggle $startdir/pkg/etc/acpi/events/
91 install -m0644 lid-event $startdir/pkg/etc/acpi/events/
92 install -m0644 powersource $startdir/pkg/etc/acpi/events/
95 mkdir -p $startdir/pkg/etc/rc.d || return 1
96 install -m0755 eee.rc $startdir/pkg/etc/rc.d/eee || return 1
98 # finally install default configuration file
99 install -m0644 eee.conf $startdir/pkg/etc/acpi/
103 md5sums=('315ce5e7b87b4ca7083fd0daaf5d394d'
104 'b0b9d034186ef1213570b90d6c865425'
105 'dc7cbe699d7ffbf75b33058ed3fddb02'
106 '6d6b2c66169059514ad0f8c8be8b024a'
107 'b5df10121971b7c3458491819a879f54'
108 '0f6bbfdc536e2b470481876994bafb0c'
109 'cdac9707cf2c7affedcd254e0b94cfdb'
110 '91d31222311be60442168a9ee4f1f060'
111 '679cad23f80f1437c6ef65e592a2a7dc'
112 'b58ad8749ed7c97bd4a7754c12bb73ae'
113 'c3ac0f09047f11e230f7c0226a39eb27'
114 'c65818b1656777fe3c37d3ccddfd517a'
115 '1780e6f5ca427fb708510851f762cd2c'
116 '428f9d3034a2ed07e03b46de0d8c8ba8'
117 '7d749f0a3a9209e9a41011d5f1e0dcc7'
118 'a712160b7d1b7724ffd5a92739b58505'
119 'ed9f9fb82a3003ba432507ebcc4408a4'
120 'c0f8acc4dad29bfbcd2dae31613ab3a7'
121 'c7496612dd777f10ea2cbc7d06a37c5f'
122 '4c66da8ddc5b0aa8521eb638e048e6f8'
123 '9f4b2815b8965624e639d1e7588b6cd0'
124 '06a0e13292ac49e82f144a0b0af9f61f'
125 '1ca0c5c988dbb1b267f824aef9f1a60c'
126 '58319289b45b27861a045c28eeac5496'
127 '1bc8fbedb9d4b8fc7975944d69a598e3'
128 '52f19bb786f47d438e844b342b90b79d'
129 'b6e205d8e689a723dd92360ea0f1743e')