| 1 | # Description: Dockapp for linux allowing the user to graphically see (and set) the power management status of his laptop |
| 2 | # URL: http://wmpower.sourceforge.net/ |
| 3 | # Packager: Jose V Beneyto, sepen at crux dot nu |
| 4 | # Maintainer: Jose V Beneyto, sepen at crux dot nu |
| 5 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org |
| 6 | # Depends on: xorg-libx11 |
| 7 | |
| 8 | name=wmpower |
| 9 | version=0.4.3 |
| 10 | release=1 |
| 11 | source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | |
| 16 | export MY_CFLAGS="$CFLAGS -I$CLFS/usr/include" |
| 17 | sed -i configure -e 's|HW=.*|HW=ARM|' |
| 18 | sed -i src/power_management/Makefile.in -e 's|AM_CFLAGS = .*|AM_CFLAGS =|' |
| 19 | |
| 20 | ./configure --build=$CHOST \ |
| 21 | --host=$CTARGET \ |
| 22 | --prefix=/usr |
| 23 | |
| 24 | make |
| 25 | make DESTDIR=$PKG install |
| 26 | } |
| 27 | |