1 # Contributor: Mattheus Happe <mhappe@gmail.com>
2 # Maintainer: adamruss <mail@russ.co.il>
4 pkgname=asus_oled-clock-svn
7 pkgdesc="Asus LCM Tool (OLED display found in Asus G1) bzr version, including asusoled-clock deamon"
9 url="http://lapsus.berlios.de/asus_oled.html"
11 makedepends=('subversion' 'qt3')
12 provides=('asusoled' 'asusoled-bzr' 'asus_oled' 'asus_oled-svn')
13 conflicts=('asusoled' 'asusoled-bzr' 'asus_oled' 'asus_oled-svn')
14 depends=('sdl' 'sdl_image' 'libusb')
16 install=$pkgname.install
18 source=('asusoled_0.02bzr20071230-1_i386.deb'
21 'asusoled-clock.patch')
22 md5sums=('0eb3d03d321546a85bdd791d901c9d92'
23 'f900bc06e5cdf859ced8f0a1270f8c2d'
24 'b693b6766b323c46f7b9e0df098f3601'
25 '1faa443d60cd44e3c91e7bddb928757b')
27 _svntrunk=svn://svn.berlios.de/lapsus/asus_oled/trunk
32 msg "Doing SVN checkout ..."
33 svn co $_svntrunk $_svnmod -r $pkgver || return 1
34 msg "SVN checkout finished, starting build ..."
37 . /etc/profile.d/qt3.sh
40 export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:$PKG_CONFIG_PATH
42 patch -Np1 -i ../device_create.patch
46 sed -i "s|target\.path = /usr/local/bin|target.path = /usr/bin|" asus_oled.pro
49 make INSTALL_ROOT=$startdir/pkg install
50 install -d $startdir/pkg/lib/modules/`uname -r`/extra
51 install -m 644 $startdir/src/$_svnmod/asus_oled.ko $startdir/pkg/lib/modules/`uname -r`/extra
53 # Added the asusoled clock feature
56 ar x asusoled_0.02bzr20071230-1_i386.deb
58 rm -f data.tar.gz control.tar.gz debian-binary
59 install -d $startdir/pkg/usr/share/pixmaps
60 install -m 755 $startdir/src/usr/share/pixmaps/* $startdir/pkg/usr/share/pixmaps
62 cd $startdir/src/usr/bin/
63 patch -Np0 -i $srcdir/asusoled-clock.patch
66 install -m 755 $startdir/src/usr/bin/asusoled-clock $startdir/pkg/usr/bin
67 install -d $startdir/pkg/etc/rc.d
68 install -m 755 $startdir/src/asusoled-clockd $startdir/pkg/etc/rc.d/
69 install -d $startdir/pkg/bin
70 ln -s /usr/bin/mktemp $startdir/pkg/bin/tempfile